[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: how to remove axis margin from plot

From   Hiroyuki Kawakatsu <>
Subject   st: how to remove axis margin from plot
Date   Thu, 12 Feb 2009 19:16:13 +0000


How can I prevent Stata from adding some extra spaces in the axis
margin at both ends of a plot? The closest I can get is

drop _all
set obs 10
gen x = _n
twoway line x x, plotr(m(zero))

The resulting graph has the x-axis margin on the right removed (which
is what I want) but not on the left. How can I get a plot with x-axis
that starts at x=1, not x=0? (For those who know R, I am looking for
an equivalent of the xaxs="i" option as in

plot(1:10, xaxs="i")

| Hiroyuki Kawakatsu
| Business School, Dublin City University
| Dublin 9, Ireland. Tel +353 (0)1 700 7496
*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index