1

I need grid labels even when I use \pspicture*. How to do this?

enter image description here

\documentclass{article}
\usepackage{pstricks}
\psset{linecolor=red}
\begin{document}
\figure[h]\centering
\begin{pspicture}[showgrid](1,1)
\psline(-1,-1)(2,2)
\end{pspicture}
\caption{without clipping}
\endfigure


\figure[h]\centering
\begin{pspicture*}[showgrid](1,1)
\psline(-1,-1)(2,2)
\end{pspicture*}
\caption{with clipping}
\endfigure

\end{document}
  • As you may notice, the dots of your grid are cut off at the outer edges in the second figure. This suggests to me that the labels are there, but covered up due to the effect of the pspicture* environment. This same effect is what gives you your clipping. I haven't yet found a way around this, but I'm looking. – Jack Henahan Jun 17 '11 at 4:37
5
\documentclass{article}
\usepackage{pstricks}
\psset{linecolor=red}
\begin{document}

\begin{pspicture}[showgrid](1,1)
\rput[lb](0,0){%
  \begin{pspicture*}(1,1)
  \psline(-1,-1)(2,2)
  \end{pspicture*}}
\end{pspicture}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.