[pstricks] patch : autoscale y axis for psgraph

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Aug 7 22:40:36 CEST 2006


Martin Chicoine wrote:

> Here is an example where you don't have to calculate yLength in order to
> have the same x- and y-scale. It is calculated automatically by setting
> yLength to 0cm. 

ok, understood

> \documentclass{article}
> \usepackage{pstricks-add-2}
> \begin{document}
> \psset{algebraic,subgriddiv=0}
>   \centering
>   \begin{psgraph}(0,0)(-4.5,-1.5)(3.5,3.5){.5\textwidth}{0cm}

in the pstricks-add.tex from http://perce.de/LaTeX/pstricks-add/
you can now write

\begin{psgraph}(0,0)(-4.5,-1.5)(3.5,3.5){.5\textwidth}{!}

similiar to the behaviour of \resizebox

Herbert





More information about the PSTricks mailing list