On Fri, 2011-06-10 at 14:15 +0200, Johannes Radinger wrote: > Hello, > > I know that it is possible to fill an area between to curves (functions) with > "fill between". > > In my case I've got let's say 10 curves of different shape. I'd like to fill > the area between the most upper lines and the most lower lines. Is that > somehow possible? One work-around which appeared in my mind was to use > fill-between for all possible combinations of 2 functions out of the 10, but > thats somehow stupid work if there is another possibility... > > I hope a made myself clear enough...and hopefully you can help me. > > /Johannes
Hi, use numpy to calculate the upper and lower limits first? curves = np.random.randn(1000, 10) plt.fill_between(np.arange(1000), curves.min(1), curves.max(1)) of course if the x values ar enot all the same you will have to interpolate... Regards, Sebastian ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users