TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to hide the grid labels without redefining the grid style, is it possible? Note: Redefining the grid style only for hiding the grid labels seems to be an overkill solution.

%\newpsstyle{gridstyle}{gridlabels=0,% other redefinition goes here!}


I know the following can be the answer, but how to do it without using \psgrid?

share|improve this question
if you do not want labels then it is a redefinition of the grid style and I cannot see that this is a problem! – Herbert Jan 5 '13 at 18:06
@Herbert: Redefinition wastes more keystrokes because many keys must be redefined to obtain the same settings that the original grid style settings has. – kiss my armpit Jan 5 '13 at 18:12
up vote 2 down vote accepted


share|improve this answer

I could probably write you a better answer if I understood better what you're trying to do. But with that said, you could just use:




The starred version of the environment gives you a clipped version.

enter image description here

But this solution assumes that there's nothing outside of the rectangle defined by (0,0) and (8,6) that you want to see.

Looking at the documentation in pst-news05, you can redefine the grid style that showgrid uses with the following line:


I think this is probably preferable to clipping. For example, if you pass \psline[arrows=o-o](0,0)(8,6) in the clipped version, you'll get something suboptimal.

share|improve this answer

Your Answer


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.