Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: RE: format each label on axis individually
From
"Sampson, Mario" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: RE: format each label on axis individually
Date
Mon, 1 Jul 2013 15:43:56 +0000
Hi again,
The code from Sergiy provides the leading zero for "0.01" and "0.10", but it results in undesired trailing zeros for "0.10" and "1.00". How can I further customize this to provide the following exact labels: "0.01 0.1 1"?
Mario
________________________________________
From: [email protected] [[email protected]] on behalf of Sergiy Radyakin [[email protected]]
Sent: Monday, July 01, 2013 2:12 AM
To: [email protected]
Subject: Re: st: RE: format each label on axis individually
sysuse auto,clear
replace mpg=mpg/1000
twoway scatter mpg price, ylabel(0.01 0.1 1 , labsize(large) format(%04.2f))
** eof
Best, Sergiy Radyakin
On Mon, Jul 1, 2013 at 2:01 AM, Sampson, Mario <[email protected]> wrote:
> Hi,
>
> I have a graph with the following y-axis label "ylabel (0.01 0.1 1 10 100, labsize(large))". However, the leading zeros are not output for 0.01 and 0.1. Instead they are .01 and .1. I can add the zeros using the graph editor. How can I specify to use a leading zero for these two labels using code?
>
> Thanks,
>
> Mario
>
>
>
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/