Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata 13 linepatternstyle


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Stata 13 linepatternstyle
Date   Thu, 1 Aug 2013 18:10:31 -0400

Sam,

linepatternstyle is still available in Stata 13:
http://www.stata.com/help.cgi?linepatternstyle

Does this one line of code produce a graph of two intersecting patterned lines?

twoway scatteri 100 100 200 200, recast(line) lpattern(dash) ||
scatteri 100 200 200 100, recast(line) lpattern(dot) legend(off)
graphregion(color(white))

The benchmark image is here (as rendered in Stata 12):
http://www.radyakin.org/statalist/2013080101/fillpatterns12.png
And the code is here:
http://www.radyakin.org/statalist/2013080101/linepattern.do
======================================================================

Do you mean, perhaps, patterned fills, as for example in -parea-?
-parea- is from here: http://ideas.repec.org/c/boc/bocode/s456926.html
As the author of -parea- I would like to know if it continues to work
in Stata 13.
An example do file is here: http://fmwww.bc.edu/repec/bocode/p/pareademo.do
and no dataset is required for running the example.
The benchmark image is shown here (as rendered in Stata 12):
http://www.radyakin.org/statalist/2013080101/fillpatterns12.png

Best, Sergiy

NB: -parea- graphing command is not related to Parea restaurant in
Valparaiso or the Pennsylvania Real Estate Academy :)


On Thu, Aug 1, 2013 at 5:14 PM, Lucas <[email protected]> wrote:
> Anyone know what's up with linepatternstyle in stata13?  In graphing a
> few functions in the same graph, no matter what I do all lines are
> solid (though the shading may differ).  I tried setting mono but that
> no longer works (horrors for all those graphs I coded several years
> ago, if I have to re-make some sometime).  I used s1mono and s2mono
> and at worst all lines are the same (solid, same shade), and at best
> they differ only in shade. But I need differences in pattern (e.g.,
> solid, dotted, and so forth).
>
> Is this a bug?  Or, is there a new command of which I do not know that
> one needs to use to set the pattern for (one or more) lines in the
> same graph?  Inquiring minds want to know (and will be very grateful
> for guidance!)!
>
> Thanks in advance.
> Sam
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index