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: Increase/Decrease Decimal Places without Graph Editor


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Increase/Decrease Decimal Places without Graph Editor
Date   Fri, 19 Oct 2012 10:39:45 +0100

What documentation suggests that there is a -yformat()- option?  Try

... yla(, format(%9.1f))

N.B. %9.1f, not 9.1%f. See -help format-.

Nick

On Fri, Oct 19, 2012 at 10:31 AM, Lisa Wang <lhwang0925@gmail.com> wrote:

> I am wondering how I can specify the number of decimals that will show
> for the x- or y-axes units without having to resort to graph editor to
> adjust it.
>
> For instance, I wanted to do:
> twoway (scatter var1 var2 if var3>0, sort), xtitle(abc) ytitle(def)
> note(my notes) yformat(9.1%f)
>
> but it always returns option yformat not allowed. OK...If this option
> is not feasible, how could I make values of the y-axis units always
> display at least 1 decimal place? Or more generally, how can I ensure
> that the x- or y-axes display "n" number of decimal places?
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index