[pstricks] plotting a data series with pstricks & psplot
Andrew Enterline
ajenter at gmail.com
Fri Mar 24 22:01:38 CET 2006
hello,
i am new two pstricks, though i understand the basic idea, and can
successfully plot examples from the web via my WinEdt/MikTeX setup.
however, i am experiencing difficulty wrapping my brain around getting my
data series values to match up with my axis labels. more precisely, i'm
having difficulty translating my data series into the proper plot
coordinates. i am wondering if anybody has a nifty way to translate data
series values into the appropriate coordinates in a plot. below, i'm pasting
an illustration of my problem. the axis labels are correct, but the line
plotted is incorrect. i am very grateful for your time and assitance.
sincerely,
andrew enterline
university of north texas
illustration:
\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\begin{document}
\begin{figure}[!ht]
\psset{unit=1.15}
\begin{pspicture}(0,0)(8,7)
\renewcommand{%
\pshlabel}[1]{#1}
\renewcommand{%
\psvlabel}[1]{#1}
\psaxes[tickstyle=bottom,%
Ox=0,%
Oy=0,%
Dx=10,Dy=.0025,%
dx=1,dy=1]%
(0,0)(8,7)
\listplot[plotstyle=line,%
linecolor=red]%
{1 0.03 2 0.04 4 0.05 6 0.06 8 0.07 10
0.08 12 0.08 14
0.09 16 0.09 18 0.1 20 0.1 22 0.11 24 0.11 26
0.12 28 0.12 30
0.12 32 0.13 34 0.13 36 0.13 38 0.14 40 0.1442
0.14 44 0.15
46 0.15 48 0.15 50 0.15}
\end{pspicture}
\end{figure}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20060324/459bcaf1/attachment.html
More information about the PSTricks
mailing list