[Matplotlib-users] How to draw a curve until it intersects another curve

2012-05-27 Thread Gordon Hardman
I am a matplotlib noob, but I have searched the documentation, lists etc and cannot find a simple way to stop a curve being drawn once it crosses another curve. In the attached example, I am trying to draw the solid curve only until it intersects the dashed one. I have tried using the numpy.whe

Re: [Matplotlib-users] How to draw a curve until it intersects another curve

2012-05-27 Thread Jerzy Karczmarczuk
Gordon Hardmant : > I ...cannot find a simple way to stop a curve being drawn once it crosses > another curve. In the attached example, I am trying to draw the solid > curve only until it intersects the dashed one. I have tried using the > numpy.where() method, but it does not seem to be the right