Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to minimize the size of the red rectangle enclosing a PSTricks grid and its labels. How to do this?

enter image description here

\documentclass{minimal}
\usepackage{pstricks}
\newpsstyle{gridstyle}{gridlabels=5pt}
\psset{style=gridstyle}
\pagestyle{empty}


\begin{document}
\psframebox[linewidth=0.5pt,linecolor=red,framesep=5.5pt]{%
\begin{pspicture}[showgrid](3,3)
\pscircle[fillstyle=solid,fillcolor=red,opacity=0.2](1.5,1.5){1.5}
\end{pspicture}}
\end{document}
share|improve this question

1 Answer 1

up vote 1 down vote accepted

that is not possible; the labels with showgrid are written on PostScript level. With \psaxes you can write it into a box and then measure width and height.

share|improve this answer
    
How to make \psgrid and \psaxes exactly get overlapped one on the other? If you can do that, it is very helpful to measure the \psgrid box in advance. –  xport Jul 14 '11 at 21:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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