<>
I may have misunderstood your request, but a right click on the vertical
lines in the Graph Editor does allow me to edit the pattern. Just save the
following as -rcapedit.grec- to your Personal/grec dir:
***
StataFileTM:00001:01100:GREC: :
00003:00003:00001:
*! classname: twowaygraph_g
*! family: twoway
*! date: 12 Aug 2009
*! time: 20:54:48
*! graph_scheme: s2color
*! naturallywhite: 1
*! end
// File created by Graph Editor Recorder.
// Edit only if you know what you are doing.
.plotregion1.plot1.EditCustomStyle , j(2)
style(area(linestyle(pattern(dot))))
// plot1 pattern
.plotregion1.plot1.EditCustomStyle , j(4)
style(area(linestyle(pattern(shortdash_dot))))
// plot1 pattern
.plotregion1.plot1.EditCustomStyle , j(5)
style(area(linestyle(pattern(shortdash_dot_dot))))
// plot1 pattern
.plotregion1.plot1.EditCustomStyle , j(7)
style(area(linestyle(pattern(longdash))))
// plot1 pattern
// <end>
***
Then run:
***
sysuse sp500, clear
tw rcap high low date in 1/8
gr play rcapedit
***
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jeph Herrin
Sent: Mittwoch, 12. August 2009 20:38
To: [email protected]
Subject: Re: st: AW: multiple colors in twoway plots
I couldn't find a way to do it in the graph editor.
cheers,
Jeph
Martin Weiss wrote:
> <>
>
>
> Why don`t you record in the Graph Editor and then play as needed? The code
> in the .grec file is not difficult to understand, so you could - within
> limits - adapt it to your needs and then -gr play- the .grec file...
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Jeph Herrin
> Gesendet: Mittwoch, 12. August 2009 17:57
> An: [email protected]
> Betreff: st: multiple colors in twoway plots
>
> Is there a way to assign a different color or
> pattern (-linestyle-) to different x-values in
> a -twoway- graph?
>
> I'm using -twoway rcap- with the -by- option,
> so I have a lot of stacked figures, and would
> like to use line attributes to distinguish them.
>
> thanks,
> Jeph
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/