[pstricks] Trying to compile pie chart example

john Culleton John at wexfordpress.com
Wed Jun 5 15:49:15 CEST 2013


I extracted the example of a pie chart from page 43 of the draft of the
users guide. It blows up on the statement \small.

Here is my pdftex file:
\input pstricks  
\psset{unit=1.2cm}
        \pspicture(-2.2,-2.2)(2.2,2.2)
           \pswedge[fillstyle=solid,fillcolor=gray]{2}{0}{70}
           \pswedge[fillstyle=solid,fillcolor=lightgray]{2}{70}{200}
           \pswedge[fillstyle=solid,fillcolor=darkgray]{2}{200}{360}
           \SpecialCoor
           \psset{framesep=1.5pt}
           \rput(1.2;35){\psframebox*{\small\$9.0M}}
           \uput{2.2}[45](0,0){Oreos}
          \rput(1.2;135){\psframebox*{\small\$16.7M}}
          \uput{2.2}[135](0,0){Heath}
         \rput(1.2;280){\psframebox*{\small\$23.1M}}
          \uput{2.2}[280](0,0){M\&M}
      \endpspicture
\bye
What else do I need to add to compile this file?

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html


More information about the PSTricks mailing list