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

Re: Plotting and PSTricks



On Fri, 16 Jul 2004, Andrew D. Hwang wrote:

> Dear Ryszard,
>
> As you've noticed, PSTricks fills even non-closed paths unless
> "fillstyle=none". (Currently ePiX sets "fillstyle=solid" by default, to
> facilitate color filling.) I neglected to mention in yesterday's email
> that use_pstricks() accepts a boolean argument; doing
>
>   use_pstricks(false);
>
> before plotting will prevent PostScript from trying to fill the graph; a
> sample file is attached. (There's another approach, but turning pstricks
> off seems better.) Since use_pstricks() only sets an internal variable
> (that is, nothing is written to the output file), you can safely toggle as
> many times as you like. :)
>
> Also, a line got deleted from yesterday's email while I was composing;
> it's only necessary to do *one* of
>
>   psset("fillcolor=<color>");
>
>   - or -
>
>   fill_color("<color>");
>
> to set the fill color. Sorry for the confusion! There's not much harm in
> doing both, but each command writes a line to the output file, and the
> color stack isn't infinitely large.

Dear Andrew,

Thank you for this explanation. Your example gives what I wanted, but it
is far from obvious how to get it. As I understand it now, it is not
possible to mix pstricks using functions with "ordinary" functions. We
have to separate both, yes?

Best wishes,
                 Ryszard

-- 
      Ryszard Tanas                       <mailto:tanas@kielich.amu.edu.pl>
 Nonlinear Optics Division                <mailto:tanas@main.amu.edu.pl>
 Institute of Physics                      Phone: +48 61 829-5184
 Adam Mickiewicz University                Fax: +48 61 829-5167
 Umultowska 85, 61-614 Poznan, Poland     <URL=http://zon8.physd.amu.edu.pl/>