[pstricks] enlarge psframe size in pspicture* environment
Michael Sharpe
msharpe at ucsd.edu
Mon Aug 30 05:36:34 CEST 2010
On Aug 29, 2010, at 7:59 PM, mathias legrand wrote:
> Hi all,
>
> using pstricks, I would like to do what follows:
>
> \begin{figure}[h]\centering
> \def\Xmax{4}
> \def\Xmin{-4}
> \def\Ymax{1}
> \def\Ymin{-1}
> \begin{pspicture*}(\Xmin,\Ymin)(\Xmax,\Ymax)
> \psframe[fillstyle=solid,fillcolor=gray!15](1.1\Xmin,1.1\Ymin)(1.1\Xmax,1.1\Ymax)
> \end{pspicture*}
> \end{figure}
>
>
> It seems that the 1.1\Xmin and others are not correct.
> Is there a strategy to perform something similar?
> Thank you
You can use a construction from pst-node (though the result might not what you really want):
\begin{pspicture*}(\Xmin,\Ymin)(\Xmax,\Ymax)
\pnode(\Xmin,\Ymin){P}\pnode(\Xmax,\Ymax){Q}
\nodexn{1.1(P)}{P1}\nodexn{1.1(Q)}{Q1}
\psframe[fillstyle=solid,fillcolor=gray!15](P1)(Q1)
\end{pspicture*}
More information about the PSTricks
mailing list