Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: RE: control hight of superscript


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: control hight of superscript
Date   Wed, 11 Aug 2010 09:50:15 -0500

Changing the -labstyle()- also changes the exponent gap.  However, the
labels are no longer centered on the tick marks.

scatter price mpg,            ///
   yscale(log)           ///
   ylab( 1e3 "10{sup:3}"         ///
         5e3 "5*10{sup:3}"   ///
         1e4 "10{sup:4}"     ///
         5e4 "5*10{sup:4}"   ///
         1e5 "10{sup:5}",  ///
         angle(0)  labstyle(smbody) labsize(*1.25) labgap(*6.5) )  ///
		 scheme(s1mono)

Scott

On Wed, Aug 11, 2010 at 9:15 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> I've found that the choice of font can make a (to me surprising) difference here.
>
> Nick
> n.j.cox@durham.ac.uk
>
> Maarten L. Buis
>
> I have been playing with -{sup:}- tag  to display exponents on the
> y-axis label. The reason is that I am using a logarithmic scale,
> and I feel that displaying the values in terms of powers of 10
> helps to see the structure of that scale.
>
> Anyhow, when I tried it the exponents appeared too high above the
> 10, especially if the graph is displayed in a smaller graph window,
> but it seems less severe when maximizing the graph window. This
> behaviour is reproduced in the graph below.
>
> *---------- begin example -----------
> sysuse auto, clear
>
> scatter price mpg,            ///
>    yscale(log)               ///
>    ylab( 1e3 "10{sup:3}"     ///
>          5e3 "5*10{sup:3}"   ///
>          1e4 "10{sup:4}"     ///
>          5e4 "5*10{sup:4}"   ///
>          1e5 "10{sup:5}",    ///
>          angle(0) )          ///
>    scheme(s1mono)
> *---------- end example ------------
>
> This leads to my question:
>
> Is there a way to control how high the exponent is placed above
> 10 (other than changing the window size)?
>

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index