[pstricks] A pdfpic question

Vince McGarry vmcgarry at austin.rr.com
Thu Feb 3 00:55:11 CET 2005


I've been experimenting with pdftricks using pdfpic. The following minimal
example seems to be clipped at the bottom, both ignoring the lower vertical
specification of -4 for pspicture (somewhat large) and apparently
calculating the bounding box incorrectly as a consequence of using two
different units.


\usepackage{ifpdf}
\ifpdf%
    \usepackage{pdftricks}
    \begin{psinputs}
        \usepackage{pstricks}
        \usepackage{pst-plot}
    \end{psinputs}
\else
    \usepackage{pstricks}
    \usepackage{pst-plot}
    \newenvironment{pdfpic}{}{}
\fi


\begin{pdfpic}
    \psset{xunit=50pt,yunit=20pt}
    \begin{pspicture*}(-1,-4)(5,7)
    \psaxes[showorigin=false,ticks=all,arrowscale=1.5]{->}(4.5,6.5)
    \end{pspicture*}
\end{pdfpic}

When xunit and yunit are equal there is no problem. Am I making some obvious
error here?

Vince McGarry




More information about the PSTricks mailing list