[pstricks] Trig Graph Inconsistency?
Herbert Voss
LaTeX at zedat.fu-berlin.de
Fri Sep 29 18:32:35 CEST 2006
McGarry Vince wrote:
> I would think that these would each give the same result, but they
> don't seem to---I'm not certain what I don't understand about how
> these work.
>
> \documentclass{minimal}
> \listfiles
> \usepackage{pstricks}
> \usepackage{pstricks-add}
>
> %%%--- this seems to work correctly
>
> \begin{document}
> \psset{trigLabels=true}
> \begin{pspicture}(-0.5,-1.25) (10,1.25)%
> \psaxes[xunit=\pstRadUnit]{->}(0,0)(-0.5,-1.25) (\psPiTwo,1.25)
> \psplot[xunit=1,linecolor=red,linewidth=1.5pt]{0}{\psPiTwo}{x
> RadtoDeg sin}
> \end{pspicture}
>
> %%%--- this doesn't seem to work correctly (or more than likely
> there's something I don't get.)
>
> \psset{trigLabels=true,xunit=\pstRadUnit}
> \begin{pspicture}(-0.5,-1.25) (10,1.25)%
> \psaxes{->}(0,0)(-0.5,-1.25) (\psPiTwo,1.25)
> \psplot[xunit=1,linecolor=red,linewidth=1.5pt]{0}{\psPiTwo}{x RadtoDeg sin}
^^^^^^^^^^
xunit=1cm, otherwise PSTricks takes the current unit into account,
which is not cm! It is set by
\psset{trigLabels=true,xunit=\pstRadUnit}
to 1.04...cm = pi/3 cm
Herbert
More information about the PSTricks
mailing list