[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: graph-weight-symbol oddity
I am getting funny label sizes in a weighted scatterplot.
Try the following example for demonstration purposes.
* 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
* Do not save the altered data!
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
Thanks in advance for any suggestions.
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
* For searches and help try: