[pstricks] bar charts

Markus Mehrwald mmehrwald at gmx.at
Mon Apr 23 14:57:34 CEST 2007


Hi @ all,

I have a big problem with pst-bar. I have values like shown below. My diagram now should start at 50%. This works fine with the axes but the bars still will be drawn from zero. What can I do to let the bars start at the same position as my axes start or do I have to subtract the start position from my values?

Regards,
Markus


\documentclass[a4paper,11pt]{article}
\usepackage{ngerman}
%\usepackage{pst-uml}
\usepackage{pst-3dplot}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-pdf}
\usepackage{pst-node}
\usepackage{pstricks-add}
\usepackage{pst-bar}
\usepackage[latin1]{inputenc}

\usepackage{subfigure}

\begin{document}
\begin{figure}
 	\psset{xunit=1,yunit=.1}
 	\begin{pspicture}(-1,-1)(13,100)
   	\psaxes[ticks=y,labels=y,Dx=1,Dy=10,Oy=50](0,50)(13,100)
   	\readpsbardata[header=false]{\data}{abwr3s1.csv}
   	\psbarchart[barstyle={black,blue,red}]{\data}
 	\end{pspicture}
 	\caption{...}
 	\label{fig:abwr2s2}
\end{figure}
\end{document}

abwr3s1.csv:
97.82608696,98.7987988,97.22222222,96.26168224,99.39577039,99.6969697,98.45679012,99.6978852,100,100,100,100,98.4423676
97.69230769,91.8699187,95.703125,90.12345679,86.32478632,98.47328244,100,98.45559846,100,100,100,97.6284585,96
98.50746269,94.57364341,99.25925926,97.72727273,97.72727273,91.12903226,98.51851852,96.8503937,100,100,96.2406015,95.45454545,100

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the PSTricks mailing list