Re: [Matplotlib-users] Transparent figures no longer working

2010-04-26 Thread Eric Firing
Jae-Joon Lee wrote: > Looking at the code, the "transparent" option set alphas of paches to > 0, which I think is simply ignored in ps backend (which does not > support alpha). I think it is better if the visibility of patches is > set to False when the "transparent" option is set. The ps backend

Re: [Matplotlib-users] Plotting 2d fourier amplitudes

2010-04-26 Thread Nikolaus Rath
Hi, Believe it or not, the factor of 1 was my only problem all the time. Until you pointed it out I never noticed that it was missing in one of the calls. Thanks! Niko On 04/26/2010 03:26 PM, Jae-Joon Lee wrote: > I think I'm lost. > > >> In other words: the colorbar created >> by imsho

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-26 Thread T J
On Mon, Apr 26, 2010 at 12:01 PM, Jae-Joon Lee wrote: > Looking at the code, the "transparent" option set alphas of paches to > 0, which I think is simply ignored in ps backend (which does not > support alpha). I think it is better if the visibility of patches is > set to False when the "transpare

Re: [Matplotlib-users] Plotting 2d fourier amplitudes

2010-04-26 Thread Jae-Joon Lee
I think I'm lost. > In other words: the colorbar created > by imshow should have the same values as the one created by contourf. But, in your original post, your plotting two different image. with contourf, you're drawing "omega*1", but with imshow, you're drawing "omega". Are you saying th

Re: [Matplotlib-users] Transparent figures no longer working

2010-04-26 Thread Jae-Joon Lee
Looking at the code, the "transparent" option set alphas of paches to 0, which I think is simply ignored in ps backend (which does not support alpha). I think it is better if the visibility of patches is set to False when the "transparent" option is set. Setting patch's (face) color to "none" work

Re: [Matplotlib-users] Plotting 2d fourier amplitudes

2010-04-26 Thread Nikolaus Rath
Hi, I want the colorbar to show the real fourier amplitudes, not the amplitudes after rescaling to 0..1. In other words: the colorbar created by imshow should have the same values as the one created by contourf. I am not sure how I can use vmin and vmax to achieve that effect. The scaling is done

Re: [Matplotlib-users] Plotting 2d fourier amplitudes

2010-04-26 Thread Jae-Joon Lee
Did you try to change vmin, vmax? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow If this is not what you want, please describe more explicitly why the colorbar is wrong. Regards, -JJ On Mon, Apr 26, 2010 at 11:37 AM, Nikolaus Rath wrote: > The problem with ims

Re: [Matplotlib-users] Issues with Circle

2010-04-26 Thread Jae-Joon Lee
On Fri, Apr 23, 2010 at 11:07 AM, Thomas Robitaille wrote: > Hi, > > I'm having issues with translucent patches. The following code > > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as mpl > from matplotlib.patches import Circle > > fig = mpl.figure() > ax = fig.add_subplot(

[Matplotlib-users] How can I prevent a FigureCanvas from being resized?

2010-04-26 Thread Mathew Yeates
Hi In an embedded application, I want to have a number of FigureCanvas s inside a scrolled window. But the FigureCanvas s always resize to fit inside my main window. I've tried intercepting resize requests but nothing seems to work. Any ideas? Mathew --

Re: [Matplotlib-users] Setting color of both major and minor gridlines?

2010-04-26 Thread KrishnaPribadi
Peter Buschman-2 wrote: > > > I ended up finding a solution to this by using a FixedLocator and > manually setting each of the tick > positions for both major and minor grids without overlap. > > I'm not sure if this is the recommended way to do this, but hey, it worked > ;-) > > for t

[Matplotlib-users] Plotting 2d fourier amplitudes

2010-04-26 Thread Nikolaus Rath
Hello, I have 2d array with fourier amplitudes that I would like to plot. I found two options: contourf and imshow. This is my code: omega = np.fft.rfftn(b_field, axes=(1, 0)) omega = np.abs(np.fft.fftshift(omega, axes=(1,))) fig = plt.figure() ax = fig.add_subplot(111) M = om