Graphics, Figures & TablesError bars with PSTricks

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
timppapoika
Posts: 10
Joined: Mon Mar 30, 2009 9:59 am

Error bars with PSTricks

Post by timppapoika »

Once again I'm stuck with drawing my graphs. This time I can't get error bars into my graph. How to do it using pstricks-add? Here's my data so far:

Code: Select all

\begin{filecontents*}{LSM.data} 
1.725163898 8.885630396 .9090909091 4.872484542 .5471756552 2.945557272 .3100868364 1.552826417 .1702513062 .848418512 .1015346165 .5213033186
\end{filecontents*} 

\psset{lly=-.5cm, arrows=-} 
\readdata{\data}{LSM.data} 
\begin{psgraph}[arrows=->](0,0)(0,0)(5,10){10cm}{10cm}
\listplot[plotstyle=dots]{\data}
\listplot[plotstyle=LSM,linecolor=red]{\data}
\end{psgraph} 
I've tried reading several manuals and I'm starting to run out of time.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error bars with PSTricks

Post by localghost »

Just take a look at the example gallery of PSTricks [1]. The source code of the examples is provided for download.

[1] /PSTricks/examples - Error bars


Best regards
Thorsten¹
timppapoika
Posts: 10
Joined: Mon Mar 30, 2009 9:59 am

Re: Error bars with PSTricks

Post by timppapoika »

Just to let you know, I couldn't figure the errorbars and LMS together for some reason. But I started using gnuplot, which seems to be straight-forward program to create graphs, although pstricks' images look a lot nicer.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error bars with PSTricks

Post by localghost »

You could split your data file for plottting with pstricks. The first file contains all columns for the plot with error bars. The second file only has the first columns for the LSM plot. Perhaps not a solution, but an appropriate workaround.
Post Reply