How to set showgrid to true by default?
I attempted to use the following code, but it did not work.
Code: Select all
\psset{showgrid=true}
The following code might be useful for you to save time.
Code: Select all
\documentclass{article}
\usepackage{pstricks}
%for grid style
\newpsstyle{gridstyle}{%
gridcolor=magenta!30,
subgridcolor=yellow!30,
gridlabels=5pt,
gridlabelcolor=red,
gridwidth=0.4pt,
subgridwidth=0.2pt}
\begin{document}
%permanent grid
\begin{pspicture}[showgrid](-2,-2)(2,2)
\pscircle*[fillcolor=red]{1}
\end{pspicture}
\vspace{1cm}
%temporary grid
\begin{pspicture}(-2,-2)(2,2)
\pscircle*[fillcolor=red]{1}
\end{pspicture}
\vspace{1cm}
\end{document}
yoyo
Note: scenario in this topic (showing grid at development stage and removing it at final stage by setting showgrid to true by default) will make us save energy by not typing \psGrid again and again (see here http://www.latex-community.org/forum/vi ... =5&t=10377 for the \psGrid trick).