On Sat, Nov 22, 2008 at 6:46 PM, Angus McMorland <[EMAIL PROTECTED]> wrote:
> 2008/11/22 Zane Selvans <[EMAIL PROTECTED]>:
>> Does anybody know of an easy way to take two intersecting curves, A(x) and
>> B(x), and fill the areas between them only when A(x) < B(x) and not when
>> A(x) > B(x)?
>
> Looks like this example from the new shiny matplotlib website should help:
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_posneg.html

Fortuitously, on Friday, I added a couple of methods to the polygon
collections code to make this a lot easier.  I just tweaked these
examples to work with the use case in this post.  Take a look at

  http://matplotlib.sourceforge.net/examples/api/fill_where_demo.html

The code is much simpler than the fill_between_posneg original
example, which I have just removed from svn.

JDH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to