Shade region between curves
Xin Dong
xdong.cn at gmail.com
Tue May 19 16:56:10 CDT 2009
Hi Rob,
Can you explain x(end:-1:1)? What does that mean?
Thanks,
Xin
On Tue, May 19, 2009 at 12:25 PM, Rob Mahurin <rob at utk.edu> wrote:
> On Tue, May 19, 2009 at 3:48 PM, ofeyrpf <shanegibney at gmail.com> wrote:
> > Is it possible with Octave to shade a region between two graphs?
>
> On May 19, 2009, at 11:17 AM, Michael Goffioul wrote:
> > What you're probably looking for is called "area".
>
>
> "area" shades between a curve and the x-axis. You can shade between
> two curves with "patch":
>
> octave:13> x = linspace(0,1.5);
> octave:14> patch( [x, x(end:-1:1)], [x.^2, x(end:-1:1).^4] , [1 0 0])
>
> There may be an easier way that other people know about.
>
> Rob
>
> --
> Rob Mahurin
> Department of Physics and Astronomy
> University of Tennessee 865 207 2594
> Knoxville, TN 37996 rob at utk.edu
>
>
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090519/72226665/attachment.html
More information about the Help-octave
mailing list