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 <Matthew.Sydes@ctu.mrc.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
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,

Matt





-----Original Message-----
From: vwiggins@stata.com [mailto:vwiggins@stata.com]
Sent: 24 November 2003 19:21
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: problems with gridlines in Stata 8.2 graphs


Matthew Sydes <Matthew.Sydes@ctu.mrc.ac.uk> reports the same problem
reported
by Michael Blasnik <michael.blasnik@verizon.net> 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
of
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
the
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
the
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
the
plots from another region.

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

 
-- Vince
   vwiggins@stata.com

*
*   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/
*
*   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/



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