[pstricks] pst-bar and bar color

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Nov 1 18:19:50 CET 2009


mathias legrand schrieb:

> \readpsbardata{\data}{uniforme.csv}
> \psbarchart[fillstyle=solid,fillcolor=blue,linecolor=black,linewidth=1pt]{\data}


> It looks like the fillcolor=blue argument has no effect since my bars
> are black?

\documentclass[]{article}
\usepackage{pst-bar}
\begin{filecontents*}{uniforme.csv}
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
0.2, 0, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0.2, 0.2
\end{filecontents*}

\begin{document}

\psset{xunit=0.5cm, yunit=17cm}
\begin{pspicture}(-1,-0.02)(13,0.3)

\psaxes[Dx=1,Oy=0,Dy=0.1,ticks=y,labels=y,tickstyle=top,
  axesstyle=frame,labelsep=1pt](-0.5,0)(12.5,0.3001)
\readpsbardata{\data}{uniforme.csv}
\psbarchart[barstyle={blue}]{\data}
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list