[pstricks] define parameters (english)

Doris Behrendt doris.behrendt at me.com
Sat Oct 22 11:08:02 CEST 2011


carsten,

you saved me!!!!
>
>
> I assume the problem's origin in usage of psaxes and pspicture*  
> simultaneously. This leads to a cut off lower boundary label.

yess!

> Since I encountered this effect also several times, I red (German)  
> article "http://anamorphose.de/rechnen.pdf" on "LaTeX calculus".
>

very good article, thanx, didn't know it;

> My approach is to add 0.001 (psunits) to the lower boundaries values  
> so the "lowest" label is omitted.
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> \documentclass[12pt]{article}
> \usepackage{pstricks}
> \usepackage{pst-plot,pst-func}
> \usepackage{pstricks-add}
>
> \newcommand{\setPspictureDimen}[4]{%
> \def\xmin{#1\psunit}%
> \def\xmax{#2\psunit}%
> \def\ymin{#3\psunit}%
> \def\ymax{#4\psunit}%
> \newlength{\xminAxis}\xminAxis=\xmin \advance\xminAxis by .001\psunit
> \newlength{\yminAxis}\yminAxis=\ymin \advance\yminAxis by .001\psunit
> } %\setPspictureDimen
>
>
> \begin{document}
>
> % [x_min,x_max,y_min,y_max]
> \setPspictureDimen{-4}{4}{-4}{4}
>
> \begin{pspicture*}(\xmin,\ymin)(\xmax,\ymax)
> \psframe[linecolor=red,linestyle=dashed](\xmin,\ymin)(\xmax,\ymax)
> \psaxes{->}(0,0)(\xminAxis,\yminAxis)(\xmax,\ymax)
> \end{pspicture*}
> \end{document}
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> ________________________________________

this is exactly what I need;-)


> _______
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/



More information about the PSTricks mailing list