Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Pie chart: plabel gap not constant


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Pie chart: plabel gap not constant
Date   Mon, 20 Sep 2004 09:00:17 -0700 (PDT)

Using -gap(relativesize)- with pie chart labels leads to odd results.
Consider the example below.

. sysuse auto
. tab foreign, gen(f)
. graph pie f1 f2, by(rep78, total) plabel(_all percent, gap(.2))
. graph pie f1 f2, by(rep78, total) plabel(_all percent, gap(*2))

When the label gap is specified via multiplication, the labels move
further from the center with each pie. The Stata documentation does
not make clear whether this is supposed to happen.

An additional problem is that the gap is now stuck at a distance that
is different from the default. When the following command is run
after the commands above, the labels are placed at the borders of the
pie. The gap has to be specified explicitly to return to the default.

. graph pie f1 f2, plabel(_all percent)
. graph pie f1 f2, plabel(_all percent, gap(0))

I use Intercooled Stata 8.2 with the latest updates.

Friedrich Huebler



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 
*
*   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