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

Consider the following example:








enter image description here

There are some wierd dents in the graph at the highlighted parts. Is this a problem with my PDF viewer or is it an error in pstricks-add?

I have tried both Evince and Adobe Reader as viewers but with the same result.

P.S. I am using Fedora 18 with the xfce desktop environment. (I am not sure if this is relevant.)

share|improve this question
Have you tried printing the page? Maybe it's just a rendering problem and will disappear on paper. – Stephan Lukasczyk Mar 5 '13 at 8:40
up vote 12 down vote accepted

It is not a rendering problem. It is a problem caused by \psplot, which evaluates the given equation at regular intervals, and then connects with straight lines the resulting points.

You can control how many points are evaluated (and thus the distance among them) using the key plotpoints. If you reduce the number, the effect is dramatically visible:

\psplot[plotpoints=10, algebraic,linewidth=1.25pt,linecolor=red]{0}{100}{2*sqrt(x*(100-x)/1633)}


Note that the sampling distance in the x-axis is constant, but in the extremes of this curve the slope is much more pronounced, and then the slope discontinuity much more noticeable.

Using more points the effect is almost unnoticeable:



share|improve this answer
Excellent answer! – Svend Tveskæg Mar 5 '13 at 9:00

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.