Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Option -scale()- with pie charts


From   vwiggins@stata.com (Vince Wiggins, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Option -scale()- with pie charts
Date   Mon, 05 May 2008 11:04:18 -0500

Sergiy Radyakin <serjradyakin@gmail.com> reports that -graph pie- does not
allow the convenience option -scale()- which allows you to scale the size of
all the text, markers, line-widths, etc. on your graph simultaneously.

> . sysuse auto
> (1978 Automobile Data)
>
> . graph pie, over(rep78) scale(0.5)
> option scale() not allowed
> search r(198)

The option -scale()- is documented for -graph pie-, and all of the other
-graph- commands honor -scale()-.

Sergiy has indeed found a bug, and it will be fixed in a future update.

In the interim, note that Sergiy himself provided an easy workaround for those
wanting to use -scale()- with -graph pie-.  Just exclude the option -scale()-
from your -graph pie- command, then redraw the graph, adding the -scale()-
option to the -graph display- command.  For example,

    . graph pie, over(rep78) 
    . graph display, scale(0.5)

 
-- Vince 
   vwiggins@stata.com

 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index