[pstricks] pstricks overlays

E. Krishnan ekmath at md5.vsnl.net.in
Thu Mar 11 04:04:13 CET 2004


On Wed, 10 Mar 2004, Richard Hensh wrote:

> I've been using my own custom macros but with slight additions. I'm
> wondering whether it is possible for the second psplot command (see below)
> to appear as if it were part of the original graphic. 

> \def\newGraph{%
> \begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)
>     \psclip{\myframe(\xmin,\ymin)(\xmax,\ymax)}
>         \psplot[linewidth=1.0pt]
>             {\xmin}{\xmax}{x}
>     \endpsclip
> \end{pspicture}
> }
> 
> \def\xmin{-6}\def\xmax{6}
> \def\ymin{-6}\def\ymax{6}
> 
> \newGraph
> \psplot[style=myPlotStyle]
> 	{\xmin}{\xmax}{x dup mul}

I don't fully understand the effect you are trying to produce; please see 
whether this is what you want:

   \def\newGraph{%
      \psclip{\myframe(\xmin,\ymin)(\xmax,\ymax)}
        \psplot[linewidth=1.0pt]%
               {\xmin}{\xmax}{x}
     \endpsclip}

  \def\xmin{-6}\def\xmax{6}
  \def\ymin{-6}\def\ymax{6}

  \begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)
    \newGraph
    \psplot[style=myPlotStyle]%
           {\xmin}{\xmax}{x dup mul}	
  \end{pspicture}


-- 
Krishnan




More information about the PSTricks mailing list