[pstricks] Pie chart problem

David Arnold dwarnold45 at suddenlink.net
Tue Jun 7 18:47:23 CEST 2011


Hi,

This code:

% !TEX TS-program = latex
\documentclass{article}
\usepackage{pstricks-add}


\begin{document}
 
\begin{center}
\psset{unit=0.4}
\begin{pspicture}(-5,-5)(5,5)
\pscircle(0,0){5}
\psline(0,0)(5,0)
\pswedge[fillstyle=solid,fillcolor=black!10]{5}{0}{21.6}
\pswedge[fillstyle=solid,fillcolor=black!20]{5}{21.6}{122.4}
\end{pspicture} 
\end{center}

\begin{center}
\psset{unit=0.4,nodesepA=2pt,nodesepB=3pt,chartNodeI=0.75,chartNodeO=1.1}
\begin{pspicture}(-5,-6)(5,6)
\psChart[userColor={black!10,black!20,white}]{6,28,66}{}{5}
\pscircle(0,0){5}
\psline(0,0)(5,0)
\psline(0,0)(5;21.6)
\psline(0,0)(5;122.4)
\ncline{psChartO1}{psChartI1}\nput{0}{psChartO1}{Undecided (6\%)}
\ncline{psChartO2}{psChartI2}\nput{0}{psChartO2}{Disapprove (28\%)}
\ncline{psChartO3}{psChartI3}\nput{180}{psChartO3}{Approve (66\%)}
\end{pspicture} 
\end{center}
 
\end{document}

Produced the images on page 555 of:

http://msenux.redwoods.edu/PreAlgText_f10/contents/chapter7/chapter7.pdf

The code now produces the attached images. Note the "shift" of the shaded area. I am using the latest update to pstricks via tex live utility (2010) on macbook pro running latest snow leopard.

I guess another change has caused this? Any suggestions?

David.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: piecharts.pdf
Type: application/pdf
Size: 5333 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110607/90af2a22/attachment.pdf>


More information about the PSTricks mailing list