On Wed, 10 Dec 2003 12:14:29 +0100 Ulrich Kohler <[email protected]>
wrote:
> I have two graphs, produced with -graph hbar- and want to combine
> them underneath each other in one single graph.
> What I want to have is [to have the y axes line up visually]
> However, since the labels of the second graph are much shorter than
> those of the first, I end up with a picture like this:
> +-----------------------------------+
> Romania |################### |
...
> United Kingdom |## |
> +-----------------------------------+
> +-----------------------------------------+
> EU |## |
...
> CC |####### |
> +-----------------------------------------+
>
> Unfortunately I couldn't found a way to control the starting coordinate
> of the numerical y-axis in the graph-region
I agree. I have reported this problem to Statacorp. The plotting
region is determined by the shape and size of labels in the surrounding
graph region. Just fixing the format of labels does not correct this,
since the label mechanism determines the length according to the value
and then draws it left-justified. Commands that happen to align the
axes if the label values are the same for each graph will fail if, say,
one graph label has an extra digit or a minus sign.
This is very irritating. It seems clear to me that the expected
operation of "graph combine" in a column or row should be to align the
axes. Arrays with the axes higgledy-piggledy just look poor. Visually
aligning the axes on a screen does not guarantee they are aligned to
printer precision and is impractical for other than one-off tasks.
What is needed is a graph-region-option to fix the origin in absolute
coordinates. Not difficult.
--------------------------------------------------------------
R Allan Reese Email: [email protected]
Graduate School
University of Hull
Tel +44 1482 466845 Fax: +44 1482 466436
*
* 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/