Consider
I find it irritating and counter-intuitive that in both of these graphs, length is on the left Y-axis, even though in the first graph it is specified as yaxis(1) and in the second yaxis(2). This is because the length plot is specified before the weight plot. But I choose the ordering of plots based on which plot I wanted to be underneath the other plot (so it is (partially) covered when the plots overlap). This may conflict with the ordering I want for the axes. Indeed it is quite likely: I normally specify the most "important" plot last, so that it is drawn on top of the other plots, but then if there are multiple Y axes it is associated with the less-prominent right-hand axis rather than the standard left-hand y axis.
Is there a way around this? Or what do people think about asking Stata to make axis placement reflect the axis number, not the plot ordering?
Code:
sysuse auto twoway (line length price, yaxis(1) sort) (line weight price, yaxis(2) sort) // GRAPH 1 twoway (line length price, yaxis(2) sort) (line weight price, yaxis(1) sort) // GRAPH 2
Is there a way around this? Or what do people think about asking Stata to make axis placement reflect the axis number, not the plot ordering?
Comment