You should use the \readdata macro. If you need a userguide go to<br> <br> http://www.tug.org/PSTricks/main.cgi?file=docs<br><br> Martijn Frijlink<br> <br><b><i>"Peter I. Hansen" <pih@xbase.dk></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Fri, 24 Mar 2006 22:36:40 +0100<br>Herbert Voss <LaTeX @zedat.fu-berlin.de=""> wrote:<br><br>> Andrew Enterline wrote:<br>> <br>> > however, i am experiencing difficulty wrapping my brain<br>> > around getting my data series values to match up with my<br>> > axis labels. more precisely, i'm having difficulty<br>> > translating my data series into the proper plot<br>> > coordinates. i am wondering if anybody has a nifty way to<br>> > translate data series values into the appropriate<br>> > coordinates in a plot. below, i'm pasting an illustration<br>> > of my problem. the axis labels are
correct, but the line<br>> > plotted is incorrect. <br>> <br>> \documentclass[12pt]{article}<br>> \usepackage{pstricks}<br>> \usepackage{pst-plot}<br>> <br>> \begin{document}<br>> \def\data{<br>> 1 0.03 2 0.04 4 0.05 6 0.06<br>> 8 0.07 10 0.08 12 0.08 14 0.09<br>> 16 0.09 18 0.1 20 0.1 22 0.11<br>> 24 0.11 26 0.12 28 0.12 30 0.12<br>> 32 0.13 34 0.13 36 0.13 38 0.14<br>> 40 0.14 42 0.14 44 0.15 46 0.15<br>> 48 0.15 50 0.15}<br>> <br>> \psset{xunit=0.2, yunit=50}% to get 10cm x 10cm with the data<br>> values \begin{pspicture}(0,0)(50,0.2)<br>> \psaxes[tickstyle=bottom,Dx=5,Dy=.02,dx=1cm,dy=1cm]{->}<br>> (0,0)(50,0.2) \listplot[linecolor=red]{\data}%<br>> \end{pspicture}<br>> <br>> \end{document}<br>> <br><br>How do I do this with an ascii datafile?<br><br>/Peter<br>_______________________________________________<br>pstricks mailing
list<br>pstricks@tug.org<br>http://tug.org/mailman/listinfo/pstricks<br></LaTeX></blockquote><br><p>
                <hr size=1>New Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com">Call regular phones from your PC</a> and save big.