[pstricks] patch : autoscale y axis for psgraph

Martin Chicoine martin.chicoine at umontreal.ca
Thu Aug 3 22:43:49 CEST 2006


I changed lines 2047 and 2072 of the \psgraph definition in pstricks.tex to
:

 

\ifdim#6=0cm\pst at dima=\pst at tempA\pst at dimo\else\pst at dima=#6\fi\relax

 

and 

 

\ifdim#8=0cm\pst at dima=\pst at tempA\pst at dimo\else\pst at dima=#8\fi\relax

 

, respectively.

 

This allows to autoscale yLength (so that the scale of the x- and y-axis are
the same) if the user enters yLength=0cm.

 

It may not be the best way to do this but it works!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20060803/fc9d2118/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pstricks-add-2.sty
Type: application/octet-stream
Size: 436 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20060803/fc9d2118/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pstricks-add-2.tex
Type: application/octet-stream
Size: 100082 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20060803/fc9d2118/attachment-0001.obj 


More information about the PSTricks mailing list