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

st: graph-weight-symbol oddity


From   Michael Ash <[email protected]>
To   [email protected]
Subject   st: graph-weight-symbol oddity
Date   Fri, 22 Nov 2002 12:02:00 -0500 (EST)

I am getting funny label sizes in a weighted scatterplot.
Try the following example for demonstration purposes.

********************
use c:\stata\census 
* use /usr/local/stata/census
* Make the Illinois population ridiculously small
replace pop=5 if state=="Illinois"

* Plot this graph
graph medage pop [weight=pop], s(O)
* As expected bubble-size increase monotonically
* from left to right

* Now try labeling the points with state names
graph medage pop [weight=pop], s([state])
* ODDITY: Illinois has a LARGE label. The rest of the labels
* on the graph, as expected, increase in size from left to
* right.

* Do not save the altered data!
clear
********************


Is there some size threshold below which Stata won't print a
very tiny label and so prints a larger label instead? Is
monitor resolution an issue?

I CAN make the problem go away by setting very large psize,
e.g., psize(500), in the graph options.

Are there other ways to control the effective symbol size?
In particular, is it possible to weight the bubbles but not
the labels?


Thanks in advance for any suggestions.

Best regards,


Michael Ash, Assistant Professor 
  of Economics and Public Policy         
Department of Economics and CPPA
University of Massachusetts
Amherst, MA 01003        
Tel 413-545-6329 Fax 413-545-2921
Email [email protected]
http://www-unix.oit.umass.edu/~maash


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index