[pstricks] pspicture: shift vs. baseline
Bernd Westphal
Bernd.Westphal at Informatik.Uni-Oldenburg.DE
Tue Jul 4 18:13:23 CEST 2006
> Herbert Voss wrote:
> Bernd Westphal wrote:
> > Moin.
> >
> > If I understand it correctly, old versions of pstricks use
> >
> > \begin{pspicture}[0.5]
> >
> > to set the baseline at half the height of the box and
> >
> > \begin{pspicture}[]
> >
> > puts the baseline through the origin.
> >
> >
> > The newer versions only have 'shift' where
> >
> > \begin{pspicture}[shift=0.5]
> >
> > shifts by 0.5 "units", i.e. not related to the box' height.
> >
> >
> > Is there a way to obtain the "old" behaviour with the newer versions, other
> > than explicitly calculating the height and setting shift correspondingly?
> >
> > Is there in particular an easy way to put the baseline through the origin with
> > the newer versions?
>
> where is the problem??
>
> Herbert
>
>
> \listfiles
> \documentclass[a4paper,11pt]{article}
> \usepackage{pstricks}
> \usepackage{pst-plot}
>
> \begin{document}
>
> \rule{1cm}{2pt}\begin{pspicture}[shift=-2\psyunit](0,-2)(3,3)
> \psaxes(0,0)(0,-2)(3,3)
> \end{pspicture}\rule{1cm}{2pt}
>
> \end{document}
>
Ok, my apologies for not specifically writing what I'm looking for.
My point is that with
\begin{pspicture}[](0,-2)(3,3)
it is significantly easier to adjust the depth of the pspicture when
incrementally filling it with content: there is no need to change two places or
to define a new length for each picture or to do whatever.
So the actual question is whether the new version still provides a way to
say "please, pspicture, put the baseline through the origin" instead of
saying "put it at -2 (which happens to be the current depth, I just looked
it up)".
B.
More information about the PSTricks
mailing list