Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

If I have something like this:

y = sin(x+z)

How can I plot the values of y, as a function of x and all the possible values of z in [-0.1, +0.1]?

That is, I want the area defined by those limits. So everything bounded by sin(x-0.1) and sin(x+0.1) would be shaded, everything outside would be whitespace.

I'm trying to express this in gnuplot, but any software would probably be fine.

share|improve this question

I can highly recommend R

share|improve this answer
While learning the R language is probably a great long-term solution (thanks for the suggestion) I was looking for something I could use more readily. Do you have an answer to this question in R? – Luís Marques Nov 23 '09 at 16:03

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.