I am working on a presentation with some functions plotted.

Unfortunately my graphs are above my \psgrid. How can I cut them automatically?

This is my code:

 \psset{unit=0.7, linewidth=0.7\pslinewidth, mathLabel=false}
 \begin{pspicture}[showgrid=false](-3, -4) (3, 4)
 \psgrid[griddots=5, subgriddiv=0, gridlabels=0pt](-3, -4)(3, 4)
 \psplot[algebraic, plotstyle=line, plotpoints=500, linecolor=red]{-3}{3}{x^3}

And this is how it looks like:


  • Provide us with a complete but minimal source code that can be used to reproduce your issue. – user69652 Jan 19 '18 at 18:13
  • @ArtificialStupidity sorry I had a mistake in my code. Now it should work – linux_lover Jan 19 '18 at 18:55
  • Use pspicture* instead of pspicture. – Bernard Jan 19 '18 at 19:48

Only for emergency purpose.

\psaxes{->}(0,0)(-3, -4)(3, 4)[$x$,0][$y$,90]

enter image description here

| improve this answer | |
  • Thanks! That solved my problem. But why is it only for an emergency? – linux_lover Jan 19 '18 at 18:56

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.