<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div>Hello all,<div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>I have been working for some time with PSTricks now, and I came accross a problem I don't understand and for which I would greatly appreciate any help.</div><div><br class="webkit-block-placeholder"></div><div>I would like to produce a chart with a gradient in the fillstyles of the bars, because it matches my company's style rules better. I use pst-bar and pst-grad</div><div><br class="webkit-block-placeholder"></div><div>There is a model file by Herbert Voß on the internet at&nbsp;<a href="http://ftp.ktug.or.kr/tex-archive/info/examples/PSTricks4_de/27-3-2.ltx">http://ftp.ktug.or.kr/tex-archive/info/examples/PSTricks4_de/27-3-2.ltx</a>.&nbsp;</div><div><br class="webkit-block-placeholder"></div><div>I tried to process it, but with no luck: the LaTeX first would stop at the&nbsp;<span class="Apple-style-span" style="white-space: pre-wrap; ">\StartShownPreambleCommands part, pretending it to be undefined.<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; white-space: normal; "></span></span></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 16px; white-space: pre-wrap; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; white-space: normal; ">I then put the data in an external file, which worked well. Then the LaTeX processor came accross a problem saying " keyval: gradangle undefined". A look at the PSTricks homepage drew my attention on the red remark about the following order of package loading (which I don't quite understand). I played around a little bit with the following order of package loading, and I managed to LateX the file correctly (I think). Another factor is that I have to work together with \TeXtoEPS, for some other reasons.</span></span></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 16px; white-space: pre-wrap; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; white-space: normal; ">With the following TeX source:</span></span></div><div><br class="webkit-block-placeholder"></div><div><div>\documentclass{article}</div><div>\usepackage{pst-bar,pst-grad,pstricks}</div><div>\usepackage{pst-eps}</div><div>\begin{document}</div><div>\TeXtoEPS</div><div>\psset{yunit=0.5}%&nbsp;</div><div>\begin{pspicture}(0,-3.5)(10,8)%</div><div>\newpsbarstyle{rG}{fillstyle=gradient,gradangle=0,gradbegin=red,gradend=white}</div><div>\newpsbarstyle{bG}{fillstyle=gradient,gradangle=0,gradbegin=blue,gradend=white}</div><div>\readpsbardata{\data}{proces.csv}%&nbsp;</div><div>\psbarchart[barstyle={rG,bG,green,black},chartstyle=stack,]{\data}%&nbsp;</div><div>\end{pspicture}&nbsp;</div><div>\endTeXtoEPS</div><div>\end{document}</div></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 16px; white-space: pre-wrap; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; white-space: normal; ">And the proces.csv containing&nbsp;</span></span></div><div><br></div><div><div>Onderzoek,Begroting,Realisatie,Test,Implementatie,Onderhoud</div><div>0,0.5,3,2,1,0</div><div>2,1,1,1,1,0</div><div>0,1,0.5,1,0,0</div><div>0,0,0,0,0.5,2</div></div><div><br class="webkit-block-placeholder"></div><div>The LaTeX processor works fine. The "dvips -E " command also works fine. When I try to convert my .ps file to .pdf, it goes wrong:</div><div><br class="webkit-block-placeholder"></div><div><div>Error: /typecheck in --rotate--</div><div>Operand stack:</div><div>&nbsp;&nbsp; false &nbsp; 1 &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0.0 &nbsp; 1.0 &nbsp; 1.0 &nbsp; 1.0 &nbsp; 1.0 &nbsp; 300 &nbsp; 0.9 &nbsp; 0.0 &nbsp; false</div><div>Execution stack:</div><div>&nbsp;&nbsp; %interp_exit &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; false &nbsp; 1 &nbsp; %stopped_push &nbsp; 1905 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1904 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; --nostringval-- &nbsp; 1888 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1771 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; --nostringval-- &nbsp; %errorexec_pop &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; %array_continue &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; %array_continue &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; (end grestore gsave 0.8 SLW 0 &nbsp;setgray 0 setlinecap stroke &nbsp;grestore ) &nbsp; --nostringval--</div><div>Dictionary stack:</div><div>&nbsp;&nbsp; --<a href="dict:1144/1684(ro)(G)--">dict:1144/1684(ro)(G)--</a> &nbsp; --<a href="dict:0/20(G)--">dict:0/20(G)--</a> &nbsp; --<a href="dict:78/200(L)--">dict:78/200(L)--</a> &nbsp; --<a href="dict:175/300(L)--">dict:175/300(L)--</a> &nbsp; --<a href="dict:38/200(L)--">dict:38/200(L)--</a> &nbsp; --<a href="dict:97/200(L)--">dict:97/200(L)--</a> &nbsp; --<a href="dict:24/25(L)--">dict:24/25(L)--</a> &nbsp; --<a href="dict:4/40(L)--">dict:4/40(L)--</a></div><div>Current allocation mode is local</div><div>Last OS error: 2</div><div>GPL Ghostscript 8.61: Unrecoverable error, exit code 1</div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div>I don't have a clue on where to look at, as there are too many variables here. The keyval issue which I don't understand about on which I don't know if I by-passed it correctly, the \TeXtoEPS command, and loading order of the packages.</div><div><br class="webkit-block-placeholder"></div><div>I use pst-bar 0.7a 2004/09/24 and pst-grad.tex 1.06 2006/11/27</div><div><br class="webkit-block-placeholder"></div><div>A second question would be what goes wrong with Herbert Voß's file on the external dataloader, but that is not the most important issue right now.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Thanks for your help!</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><br class="Apple-interchange-newline"><br class="webkit-block-placeholder"></div><div>Bas Dekker</div><div><br class="Apple-interchange-newline"><br></div><div><br></div><div><font class="Apple-style-span" color="#6A020D"><font class="Apple-style-span" size="5"><span class="Apple-style-span" style="font-size: 18px; ">DigiFuga&nbsp;</span></font></font></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="color: rgb(197, 74, 24); "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Vooruitstraat 109</span></font></span></div><div><font class="Apple-style-span" color="#C54A18"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">1441 GH Purmerend</span></font></font></div><div><font class="Apple-style-span" color="#C54A18" size="2"><span class="Apple-style-span" style="font-size: 10px;">Nederland</span></font></div><div><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" color="#E7561C"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">+31 (0)6 25 00 32 78</span></font></font></div><div><font class="Apple-style-span" color="#E7561C"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br class="webkit-block-placeholder"></span></font></font></div><div><font class="Apple-style-span" color="#E7561C"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="mailto:bas.dekker@digifuga.nl">bas.dekker@digifuga.nl</a></span></font></font></div><div><font class="Apple-style-span" color="#8C140A"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; "><a href="http://www.digifuga.nl">www.digifuga.nl</a></span></font></font></div></span> </div><br></div></body></html>