Consider the following example, taken from page 8 of the pst-plot manual:


\usepackage[margin = 2cm]{geometry}


\psplot[linecolor=red, plotstyle=curve,linewidth=2pt,plotpoints=200]{0}{11}%
[/const1 3.3 10 8 neg exp mul def /s 10 def
 /const2 6.04 10 6 neg exp mul def ] % optional PS commands
{const1 x 100 mul dup mul mul Euler const2 neg x 100 mul dup mul mul exp mul 2000 mul}


When I compile, LaTeX throws the warning

Overfull \hbox (312.98018pt too wide) detected at line 9

at me.

Can anyone tell me how I get rid of this warning? (I think it might has something to do with \psaxes but I'm not sure at all.)

P.S. It occures in other PSTricks plots, too. I can't remember seeing these warnings before when I've first created some (now) old documents, so I have a feeling that a "bug" has been introduced in a recent version of one of the PSTricks packages but I'm not sure.

  • No such warning at my end.
    – AlexG
    Jun 25, 2017 at 20:09
  • @AlexG I have a fully updated TeX Live 2017 distribution. And you? Jun 25, 2017 at 20:11
  • No, I tested on ShareLaTeX, which is definitely not. The size of the TeX box is entirely defined by the pspicture dimensions. Maybe there is something wrong with it.
    – AlexG
    Jun 25, 2017 at 20:13
  • Okay. I case you have a fully updated TeX Live 2017, can I then make you try the example there? Jun 25, 2017 at 20:14
  • 1
    Tomorrow I will do.
    – AlexG
    Jun 25, 2017 at 20:14

1 Answer 1


Use the document class option draft and you'll see that the overfull box is marked for the x-axis labels. The reason is that the labels are set on TeX level in a box of width 0pt. So every x axis with labels gets this warning which doesn't hurt.

  • 1
    that has nothing to do with the labels at the ticks. Use labels=y and the warning doesn't happen.
    – user2478
    Jun 25, 2017 at 20:48
  • 1
    You can try pst-plot.tex from comedy.dante.de/~herbert/texnik/tex/generic/pst-plot
    – user2478
    Jun 26, 2017 at 7:22
  • 1
    There are so many special cases where this part of the code is used and I am not sure if it breaks something other. However, let's see what will be.
    – user2478
    Jun 26, 2017 at 11:33
  • 1
    I will wait some time to see if there maybe a new problem with this code change.
    – user2478
    Jun 26, 2017 at 19:34
  • 1
    Yes, there were some problems. I revert the changes.
    – user2478
    Jul 14, 2017 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .