Plotting 2D contours

Hello All,

What module can I use with wxPython to plot 2D iso-contours? I have data at every pixel in a 2D grid and I need to draw iso-contours. Its more like drawing weather contours.

Thank you

Kotesh

matplotlib or DrawPoint method of wx.DC? here’s a DrawPoint demo:

···

On Wednesday, August 27, 2014 11:56:47 AM UTC-7, kruvva wrote:

Hello All,

What module can I use with wxPython to plot 2D iso-contours? I have data at every pixel in a 2D grid and I need to draw iso-contours. Its more like drawing weather contours.

Thank you

Kotesh

Is there an example that shows how to use matplotlib with wxPython to draw contours? I see several example that shows axes plots but not contour plots. Basically , I have x and y ranging from 1 to 100 and z at each (x, y). I want to plot iso-contours of z.

···

On Wednesday, August 27, 2014 2:02:54 PM UTC-7, Nathan McCorkle wrote:

matplotlib or DrawPoint method of wx.DC? here’s a DrawPoint demo:
http://zetcode.com/wxpython/gdi/

On Wednesday, August 27, 2014 11:56:47 AM UTC-7, kruvva wrote:

Hello All,

What module can I use with wxPython to plot 2D iso-contours? I have data at every pixel in a 2D grid and I need to draw iso-contours. Its more like drawing weather contours.

Thank you

Kotesh

This has not much to do with wxPython:
Check http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.contour if that is it what you want do do.
The matplotlib + wxPython examples are not particulary brilliant, but you should be able to figure out how it works by looking at the examples
http://matplotlib.org/examples/index.html
searching for the examples with “embedding_in_wx” in its name. Avoid examples using the pyplot machinery, use the fully object orientated ones. Pyplot it will just get into your way when dealing with refreshing and other event-driven things later on.

···

On Thursday, August 28, 2014 8:01:04 AM UTC+2, kruvva wrote:

What module can I use with wxPython to plot 2D iso-contours? I have data at every pixel in a 2D grid and I need to draw iso-contours. Its more like drawing weather contours.