[pstricks] why this code does not compile

Michael Sharpe msharpe at ucsd.edu
Sun Apr 8 18:07:14 CEST 2012


On Apr 8, 2012, at 8:21 AM, Per Ting wrote:

> OK, this means that there is a bug in the GeoGebra pstricks
> translator. But after removing the unknown character and simplifying
> the equation, the following code does not yet work. What could the
> reason be?
> 
> Thanks
> 
> \documentclass[11pt]{article}
> \usepackage{pstricks-add}
> \pagestyle{empty}
> \begin{document}
> \psset{xunit=5cm,yunit=1.5cm}
> \begin{pspicture*}(-0.8,-1.21)(4.4,10)
> \psset{xunit=5.0cm,yunit=1.5cm,algebraic=true,linewidth=0.8pt,arrowsize=3pt
> 2,arrowinset=0.25}
> \psaxes[labelFontSize=\scriptstyle,xAxis=true,yAxis=true,Dx=0.2,Dy=0.5,ticksize=-2pt
> 0,subticks=2]{->}(0,0)(-0.2,-0.3)(1.1,5)[x,140] [y,-40]
> \psplot[plotpoints=200]{0.0001}{0.5}{(1+x*ln(x)/ln(2)+(1-x)*ln(1-x)/ln(2)}
> \end{pspicture*}
> \end{document}


The fragment (1+x should be just 1+x

Michael


More information about the PSTricks mailing list