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

RE: st: problems with gridlines in Stata 8.2 graphs

From   Matthew Sydes <>
To   "''" <>
Subject   RE: st: problems with gridlines in Stata 8.2 graphs
Date   Tue, 25 Nov 2003 09:08:49 -0000

Good morning,

Thank you for the responses to the gridlines problem yesterday afternoon.  I
am pleased to hear that the problem should be resolved in the next ado
update, and Vince's explanation of the problem was very interesting.  In the
meantime, Nick's rather cunning work-around will definitely get me by.

Now, if only I knew how to get -sts, graph- to display numbers at risk at
discrete intervals beneath the x-axis I'd be a pretty happy Stata user...

Kind regards,


-----Original Message-----
From: []
Sent: 24 November 2003 19:21
Subject: Re: st: problems with gridlines in Stata 8.2 graphs

Matthew Sydes <> reports the same problem
by Michael Blasnik <> last week -- twoway graphs
with multiple X- or Y-axes sometimes overlay gridlines on top of the plotted
lines or markers.  I cannot currently reproduce this on my machine ..., but
then that is only because the problem has already been fixed in my version
Stata.  This fix will be available in the next ado update, but because there
are some things for the update that are not yet complete, we don't expect
update to be available until early next week.

I have to admit that Matthew and Michael got caught in what was a bit of an
experiment.  We knew this was possible when Stata 8 shipped, but in all of
cases we could conjure the graphs were rather complicated and we thought
unlikely.  Matthew's last example produced the problem with a relatively
simple graph and in a way we had not anticipated.

Not that Matthew or Michael are probably much interested, but the problem
stemmed from a very elegant algorithm wherein graph objects draw themselves
with no knowledge of the overall graph structure or other objects.
Unfortunately, multiple axes lead to multiple, overlayed plotregions, and
since it is the plotregions that hold both the grids and the plots (lines or
markers) this leads to the grids from one plotregion potentially occulting
plots from another region.

Suffice to say that we have sacrificed some hidden elegance for the
matter of drawing what people expect.  

-- Vince

*   For searches and help try:
*   For searches and help try:

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