1.

How To Fill An Area Between Two Curves?

Answer»
  • A pseudo file ‘+’ is used to FILL the area between TWO curves. 
  • The option ‘filledcurves’ closed is used.
  • The following example demonstrates the PROCESS. The two curves are F(x) and g(x).
    f(x)=cos(x)
    g(x)=sin(x)
    XMAX=pi/4
    set xrange [0:xmax]
    plot '+' using 1:(f($1)):(g($1)) with filledcurves closed



Discussion

No Comment Found