[pstricks] pspicture shift
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Wed May 13 22:26:42 CEST 2009
David Arnold schrieb:
>
> I don't understand why shift=-1 does not seem to have an affect on
> this code when I compile with ps4pdf.
ps4pdf creates a graphix which is later insert by
pdflatex, but it knows nothing about the shift,
it knows only the graphic. Use \raisebox instead:
\documentclass[12pt]{article}
\usepackage{pst-pdf}
\usepackage{pst-bar}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\usepackage{pst-tree}
\begin{document}
\begin{itemize}
\item \psset{unit=0.125in}
\begin{pspicture}[shift=-1](-8,-2)(8,0.5)
\psaxes[arrowscale=1.5,arrows=<->,yAxis=false,
labels=none](0,0)(-8,0)(8,0)
\uput[270](-7,0){$-7$}
\uput[270](0,0){$0$}
\uput[270](7,0){$7$}
\psdots*[linecolor=red,dotsize=3pt 3](-2,0)(-3,0)(-4,0)(-5,0)
\end{pspicture}
\item Hello.
\end{itemize}
\end{document}
Herbert
More information about the PSTricks
mailing list