[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)

From   David Airey <>
Subject   Re: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)
Date   Sat, 18 Apr 2009 16:16:51 -0500


I didn't know one could do this. Thanks!


On Apr 18, 2009, at 3:10 PM, Scott Merryman wrote:

On Fri, Apr 17, 2009 at 6:52 PM, Jacob Wegelin < > wrote:
The artificial example below creates a "by" plot (two plots, in a row)
with a superfluous row of labels for the levels of -foreign- and of
-headroom- between the left and right graphs. I'd like to eliminate
the second set of labels, that is, those for the plot on the right,
and smash the two plots together with very little space between them.
In particular, the labels "Domestic" and "Foreign" should appear only
once on the entire "by" plot.

clear all
sysuse auto
set scheme lean1
egen PriceCat=cut(price), at(3000 6000 16000)
graph hbox turn, by(PriceCat, noiylabel noiyaxes rows(1))
over(headroom) over(foreign) name(gr1,replace)

//use the graph editor or by command line:
gr_edit plotregion1.supaxis[2].draw_view.setstyle, style(no)
gr_edit plotregion1.grpaxis[2].draw_view.setstyle, style(no)

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index