[pstricks] fileplot problem

Alan Ristow ristow at ece.gatech.edu
Fri Feb 4 15:21:57 CET 2005


Aydin Ustun wrote:
> I am trying to plot a time series between 1980-2005 years from a 
> external file. But, the output does not appear in the axes-frame.

I suspect that adding the following line just before your \fileplot line 
will solve the problem.

\pstScalePoints(1,1){1980 sub}{}

I haven't tested it, though.

Alan

> 
> Please, can anyone help me?
> Thanks
> 
> 
> \documentclass[12pt,a4paper]{article}
> \usepackage{pst-plot}
> \usepackage{pstricks-add}
> \begin{document}
> \psset{xunit=5mm,yunit=0.003mm}
> \begin{pspicture}(25,25000)
> \psaxes[axesstyle=frame,Dx=5,%
>        Dy=5000](25,25000)%
> \fileplot[linewidth=1pt, linecolor=blue]{data2.dat}
> \end{pspicture}
> \end{document}
> 
> data2.dat file
> 1980.0 1447.89
> 1981.1 1207.96
> 1982.2 1351.99
> 1983.3 1540.16
> 1984.3 1729.44
> 1985.4 1718.2
> 1986.5 1729.67
> 1987.6 1911.74
> 1988.7 1767.24
> 1989.8 1790.97
> 1990.8 1730.78
> 1991.9 1825.62
> 1992.0 1866.13
> 1993.1 1284.53
> 1994.2 1719.38
> 1995.3 1712.79
> 1996.3 1891.32
> 1997.4 1828.84
> 1998.5 1887.23
> 1999.6 1843.91
> 2000.7 1909.15
> 2001.8 1872.08
> 2002.8 1937.21
> 2003.9 2074.47
> 2004.0 1651.92
> 2004.9 1408.19
> 
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 




More information about the PSTricks mailing list