Statalist


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

Re: st: width between ticks in a graph's axis


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: width between ticks in a graph's axis
Date   Wed, 17 Feb 2010 13:05:01 +0000 (GMT)

--- On Wed, 17/2/10, Vitorino, Maria Ana wrote:
> My question is the following: I am doing a scatter plot and
> would like to impose that the scales of the x and the y axis
> are the same, for example, the width between "ticks" 6 and 7
> in the y axis should be the same between "ticks"  2 and
> 3 on the x axis. Is there any way of imposing this?

You'll probably want to specify the -aspect(1)- option, which
will result in a square graph. After that you can use the 
yscale(range(# #)), ylab(), xscale(range(# #)) and xlab() 
options to make sure that each axis covers the same range.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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