[pstricks] Problem with pstricks-add (psgraph) and pst-pdf

Vincent McGarry vmcgarry at austin.rr.com
Mon Dec 31 19:22:41 CET 2007


On Dec 31, 2007, at 10:08 AM, Bruce Burlton wrote:

>
> I have a problem that I cannot resolve when I use the psgraph  
> together with pst-pdf,as shown in the minimal example below.  The  
> original data file is much longer, and created externally.  I have  
> truncated it and used the filecontents package for brevity.  I am  
> running WinXP/SP2 with MiKteX and WinEdt.
>
> When \pst-pdf is "uncommented", I get the following error, when I  
> compile using LaTeX
>
> Runaway argument?
> {0,40})({366,70})\pr at endbox {10cm}{5cm}\readdata {\datafile }{./data/ 
> \ETC.
> ! Paragraph ended before \psgraph at ii was complete.
> <to be read again>
>                    \par
>

See the wrapper around psgraph below.

Vince McGarry

%-------------------------

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents*}{datafile1.dat}
0.00000000,54.188
1.00000000,54.164
2.00000000,54.136
3.00000000,54.105
4.00000000,54.071
5.00000000,54.033
6.00000000,53.992
7.00000000,53.947
8.00000000,53.899
9.00000000,53.847
10.00000000,53.792
\end{filecontents*}

\listfiles

\usepackage{pst-pdf}%

\usepackage{pstricks-add}%

\begin{document}

\psset{yAxisLabel=Beta Angle (degrees),xAxisLabel={Days from Vernal  
Equinox},%
   xAxisLabelPos={5cm,5.75cm},yAxisLabelPos={-1.cm,9cm}}%
\begin{postscript} %%%%%%%%%%%%%%%%%%% <---REQUIRED WHEN USING PSGRAPH  
AND PST-PDF
\begin{psgraph}[axesstyle=frame,{xticksize=0 30},{yticksize=0  
366},Dx=50,Dy=10,Oy=40](0,40)(366,70){10cm}{5cm}%
   \readdata{\datafile}{./datafile1.dat}%
   \listplot[linecolor=red]{\datafile1}%
\end{psgraph}%
\end{postscript} %%%%%%%%%%%%%%%%%%% <---REQUIRED WHEN USING PSGRAPH  
AND PST-PDF
\end{document}

>  ***********
>
> Bruce Burlton
> Carleton University
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks




More information about the PSTricks mailing list