[pstricks] polar plot in \listplot?

Boris Dušek borisdusek at cmail.cz
Mon Apr 3 13:47:04 CEST 2006


Dear Herbert,

thank you very much for your assistance, when I manually rewrote it, it 
worked. Sorry for the trouble with pasting.

Regards,
Boris

On Sunday 02 April 2006 22:21, Herbert Voss wrote:
> Boris Dušek wrote:
> > On Sunday 02 April 2006 20:31, Herbert Voss wrote:
> >>>polar.tex; dvips -o polar.ps polar.tex), but viewing it crashes
> >>>ghostscript
> >>
> >>                                   ^^^^^^^^
> >>ist it a typo?  should be:
> >>dvips -o polar.ps polar.dvi
> >
> > yes, sorry, it's a typo
> >
> >>Otherwise send me the ps file
> >
> >  It is attached. Thank you for your help.
>
> this is your code
>
> [ ... ]
>   tx at Dict begin STP newpath 0.8 SLW 1 0 0  setrgbcolor  /ArrowA { moveto
> } def /ArrowB { } def /D {} def mark    0 1 30 1  45 1  60 1  90
> 1 Â  Â  Â  120 1 135 1 150 1 180 1 Â  Â  Â  210 1 225 1 240 1 270 1
> Â  Â  Â  300 1 315 1 330 1 360 1  142.26372 142.26372 Â  Â /y ED /x
> ED    counttomark dup dup cvi eq not { exch pop } if    /m exch
> def /n m 2 div cvi def    n { /RAD exch def         dup   Â
>               cos exch sin RAD mul y mul m 1 roll     Â
> [ ... ]
>
> how it should be:
>
> [ ... ]
>   tx at Dict begin STP newpath 0.8 SLW 1 0 0  setrgbcolor  /ArrowA { moveto
> } def /ArrowB { } def /D {} def mark 0 1 30 1 45 1 60 1 90 1 120 1
> 135 1 150 1 180 1 210 1 225 1 240 1 270 1 300 1 315 1 330 1 360 1
> 142.26372 142.26372 /y ED /x ED counttomark dup dup cvi eq not { exch
> pop } if /m exch def /n m 2 div cvi def n { /RAD exch def dup cos exch
> sin RAD mul y mul m 1 roll RAD mul x mul m 1 roll /m m 2 sub def }
> [ ... ]
>
> as you can see, you code is buggy
> I suppose that you have a problem with the spaces (copy and paste
> of the example from my mail and different font encoding). Try again with
> \def\data{0 1 30 1} but do not copy and paste
>
> Herbert
>
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list