[SciPy-User] Obtaining constant contours

Nikolaus Rath Nikolaus@rath....
Fri Nov 5 08:26:35 CDT 2010


josef.pktd@gmail.com writes:
> On Thu, Nov 4, 2010 at 7:13 PM, Christopher Barker
> <Chris.Barker@noaa.gov> wrote:
>> On 11/4/10 4:06 PM, Nikolaus Rath wrote:
>>> In other words, I want a
>>> numerical version of what matplotlib's contour() function plots
>>> when I
>>> request a single level curve.
>>
>> If you poke into the MPL contour code a bit, you should be able to
>> extract the data used to draw the contours -- i.e. what you want.
>
> Maybe this
> http://stackoverflow.com/questions/1560424/how-can-i-get-the-x-y-values-of-the-line-that-is-ploted-by-a-contour-plot-matp
>
> reduces your amount of digging.

That's helpful indeed. I tried digging into contour() before without
much success.


Thanks,

   -Nikolaus


-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


More information about the SciPy-User mailing list