Statalist


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

st: Option -scale()- with pie charts


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Option -scale()- with pie charts
Date   Fri, 2 May 2008 21:23:32 -0400

Hello Statalisters,

I am trying to make text smaller on my pie-chart, because the legend
occupies most of the graph. However, both Stata 9 and Stata 10
(Windows, two different computers) rejected option -scale()- of graph
pie command. At the same time scale() works fine with the -twoway-
graphs.

The online help (Stata 10) says:

********************* quote
*******************************************************

 [G] std_options -- Options for use with graph construction commands

Syntax

        std_options                   description
        ---------------------------------------------------------------------
        scale(#)                      resize text and markers
...

Description

    The above options are allowed with

        command                       manual entry
        ------------------------------------------------------------
...
        graph pie                     [G] graph pie

********************* end of quote
**************************************************

After some tracing, the problem seems to be in piegraph_g.makegraph,
which parses the options and leaves -scale()- unparsed and thus cries
with an error.

Here is a way to reproduce the problem:

sysuse auto
graph pie, over(rep78) scale(0.5)

Here is a workaround I have found to this problem:

sysuse auto
graph pie, over(rep78)
graph display, scale(0.5)

I believe that this is a bug, because:
1. scale() must work with this type of graph
2. it does not work
3. there is nothing special in the design of the graph which would
make this infeasible, and the workaround shows this.

I wonder if someone could confirm that this is a bug, or am I doing
something wrong here? Is there any better solution to minimize flicker
on the screen, when building many graphs?

Thank you, and have a nice weekend, All.

   Sergiy Radyakin
*
*   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