[pstricks] Plotting Numeric Values Against Dates

Michael Sharpe msharpe at ucsd.edu
Tue Jun 15 01:14:06 CEST 2010


On Jun 14, 2010, at 3:59 PM, Rich Shepard wrote:

> On Mon, 14 Jun 2010, Rich Shepard wrote:
> 
>> I see my error in directly adapting bar0-3.tex as a template for my data.
>> However, reading the pst-plot doc doesn't make clear to me what function to
>> use instead of \listplot when the abscissa values are dates rather than
>> numbers.
> 
>  Progress, of a sort. :-)
> 
>  The listing is:
> 
> \documentclass{article}
> \pagestyle{empty}
> \setlength\parindent{0pt}
> \usepackage{pstricks,pst-plot}
> 
> \begin{document}
> 
> \psset{xunit=.4cm,yunit=.3cm}
> 
> \begin{pspicture}(-2.25,-2)(29,12)
>  \readdata{\data}{precip1.dat}%
>  \psset{llx=-0.5cm,lly=-0.75cm,plotstyle=LineToXAxis}
>  \pstScalePoints(1,1){1989 sub}{3 sub}
>  \begin{psgraph}[axesstyle=frame,Dx=2,Ox=01-Dec-2008,Oy=2,subticks=2](0,0)(12,4){6in}{3in}
>    \listplot[linecolor=red,linewidth=12pt]{\data}
>  \end{psgraph}
> 
>  \rput{90}(-3,6.25){Precipitation (in.)}
> \end{pspicture}
> 
> \end{document}
> 
>  I get an error for line 16 (the \begin{psgraph}... line):
> 
> (/usr/share/texmf/tex/generic/multido/multido.tex  v1.42, 2010/05/14 <tvz>)
> v1.16, 2010/05/14)) (./precip.aux)
> ! Missing = inserted for \ifnum.
> <to be read again>
>                   -
> l.16 ...2008,Oy=2,subticks=2](0,0)(12,4){6in}{3in}
> 
>  When I look in the pst-plot doc (page 26) where the psaxes options are
> supposed to be explained, I find only the polar option. What does the frame
> option do? I'm trying to learn where I've made the error but the doc isn't
> helping me.
> 
>  The data file (precip1.dat) is attached.
> 
> Thanks,
> 
> Rich<precip.tex>_______________________________________________

You attached the tex file, not the dat file.

Michael





More information about the PSTricks mailing list