[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: twoway area with no outline along the baseline

From   "Nick Winter (UVa)" <[email protected]>
To   Stata List <[email protected]>
Subject   st: twoway area with no outline along the baseline
Date   Thu, 10 Jan 2008 16:37:46 -0500


As part of a more complex graph I'm trying to construct, I want to create a -twoway area- plot that lacks the outline along the baseline. THat is, I want the outline along the "peaks" of the area, as well as along the vertical drops down to the baseline at the minimum and maximum of the data, but I do not want the outline along the baseline itself.

The two approaches that occur to me are:

(1) overwrite the baseline with an appropriate -twoway line-, with the line color set to the fill color of the area plot. THe problem here is that when the area plot gets very close to the baseline, the outline of the peaks can get overwritten as well if it is close enough to baseline at some point along the area.

(2) create the area plot with no outline (that is, with the outline the same color as the fill), then create the outline with -twoway line-. This does not create the vertical drops to the baseline at the min and max of the data without adding fake observations.

I could do (1) and then (2), using (2) to re-create the line wherever it might be overwritten in step (1), but that seems inelegant at best...

Any other ideas?

--Nick Winter

Nicholas Winter 434.924.6994 t
Assistant Professor 434.924.3359 f
Department of Politics [email protected] e
University of Virginia w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

* For searches and help try:

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