[Matplotlib-users] Contour plots with same color mapping

2010-07-26 Thread Nikolaus Rath
Hello, I would like to draw a couple of contour plots. The plots are on separate figures, but they should all have exactly the same color mapping (i.e, the same Z value should correspond to the same color in all plots). What's the best way to achieve this? From the documentation I gather that I

Re: [Matplotlib-users] Contour plots with same color mapping

2010-07-26 Thread Eric Firing
On 07/26/2010 10:13 AM, Nikolaus Rath wrote: Hello, I would like to draw a couple of contour plots. The plots are on separate figures, but they should all have exactly the same color mapping (i.e, the same Z value should correspond to the same color in all plots). What's the best way to

[Matplotlib-users] contour plots with logarithmic axes

2010-01-11 Thread Jonathan Slavin
Is there any way to simply make a contour plot with logarithmic axes using matplotlib? I found a workaround by plotting log10(x), log10(y), but it'd be nicer if it was more direct. As someone new to matplotlib (experienced in IDL) I'm finding much to like, but some things are more difficult

Re: [Matplotlib-users] contour plots with logarithmic axes

2010-01-11 Thread Jae-Joon Lee
Contour will work as expected if the axes is in log scale. See below. z = np.arange(100).reshape((10,10)) x = np.logspace(0, 4, 10) y = np.logspace(0, 4, 10) ax1 = subplot(121) ax1.contour(np.log10(x), np.log10(y), z) ax2 = subplot(122) ax2.set_xscale(log) ax2.set_yscale(log) ax2.contour(x, y,

Re: [Matplotlib-users] contour plots with logarithmic axes

2010-01-11 Thread Eric Firing
Jae-Joon Lee wrote: Contour will work as expected if the axes is in log scale. See below. z = np.arange(100).reshape((10,10)) x = np.logspace(0, 4, 10) y = np.logspace(0, 4, 10) ax1 = subplot(121) ax1.contour(np.log10(x), np.log10(y), z) ax2 = subplot(122) ax2.set_xscale(log)

[Matplotlib-users] Contour plots

2006-12-20 Thread Ganesh V
Hi! I have a problem with contour plots. See the two plots at http://www.ae.iitm.ac.in/~ae03b007/downloads/matlab.jpg http://www.ae.iitm.ac.in/~ae03b007/downloads/matplotlib.jpg The names show how they are generated. It's the same data obviously. Why the difference. I am dealing with a

Re: [Matplotlib-users] Contour plots

2006-12-20 Thread Eric Firing
Ganesh V wrote: Hi! I have a problem with contour plots. See the two plots at http://www.ae.iitm.ac.in/~ae03b007/downloads/matlab.jpg http://www.ae.iitm.ac.in/~ae03b007/downloads/matplotlib.jpg The names show how they are generated. It's the same data obviously. Why the difference.