[pstricks] polar plot in \listplot?

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun Apr 2 22:21:40 CEST 2006


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





More information about the PSTricks mailing list