[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Patterns in an area graph
Is there any way I can persuade Stata 8 to draw an area graph with
hatching rather than a particular colour?
My coding is below. The key bit is "bfcolor(gray)". The journal we
would like to submit to publishes in black & white and frowns on grey
shading because such graphs "do not reproduce well". Fair enough. I'd
like to replace the area of "gray" with an area of white with black
dots, or an area of white with black diagonal cross-hatching stripes.
I can see various commands that control lines, but few that control
patterns/colours within areas.
Any ideas? Surely this is not an impossibility?
Here's the code ...
twoway (area conlow time, base(100) bfcolor(gray) blwidth(thin))
(area conmid time, base(100) bfcolor(black)
legend(off) graphregion(margin(small)) xtitle("")
yscale(range(0 100)) ylabel(0(20)100, grid labsize(large))
xscale(range(0 15)) xlabel(0(5)15, grid labsize(large))
* For searches and help try: