Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
Hello, Yes, the problem was really related to my version of matplot: i used matplot 0.98.5.2-4.fc11 before. I tried it with the latest svn revision (r7279) and it worked. Thanks, Lukas Am Dienstag 21 Juli 2009 21:02:03 schrieb Darren Dale: > On Tue, Jul 21, 2009 at 3:01 PM, Darren Dale wrote: >

Re: [Matplotlib-users] adjusting the height of rectangle legend handles

2009-07-21 Thread Jae-Joon Lee
The height of the box will scale with the font size. If you want to change the height independent of the font size, you need to manually adjust the properties of the individual legend handles. l = legend() patches = l.get_patches() # list of legend handles whose type is matplotlib.Patch. for p in

[Matplotlib-users] adjusting the height of rectangle legend handles

2009-07-21 Thread Chuck Pepe-Ranney
I know that there is a keyword argument for adjusting the width of legend handles but how would I reduce the *height* of rectangle label handles? -Chuck -- ___ Matplotlib-users m

Re: [Matplotlib-users] Colorbar not working with specgram

2009-07-21 Thread Eric Firing
davide lasagna wrote: > Hello everybody, > this is my first post in this list. > > I'm plotting a spectrogram with > > Pxx, freqs, bins, im = specgram(y, nfft=256, f_sampling=12000) > > and i want to add a colorbar with > > colorbar() > > > The problem is that the color scale seems to be wro

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 2:47 PM, Lukas Hetzenecker wrote: > Hello, > the matplotlib widget has an incorrect default size (the left one in the > attatched screenshot). > I couldn't reproduce this behaviour with any Qt widget - so it seems that this > is specific to matplotlib. But as I'm not really

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
Hello, the matplotlib widget has an incorrect default size (the left one in the attatched screenshot). I couldn't reproduce this behaviour with any Qt widget - so it seems that this is specific to matplotlib. But as I'm not really sure of the cause I posted it to both lists. Lukas Am Dienstag

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzenecker wrote: > Sorry for annoying you, but I attatched a new example to this message: I've > rewritten the PyQt4-example from the website to draw the Figure in a tab > widget. The same happens ;) In your original post, you said: "the widget in the Tab

Re: [Matplotlib-users] speeding-up griddata()

2009-07-21 Thread Denis-B
Robert C, Robert K, folks, messing with the nice delaunay/testfuncs.py to time linear_interpolate_grid nn_interpolate_grid and nn_interpolate_unstructured in _delaunay, I see linear ~ 100 times faster than the nn_ s: # from: trigrid Ntri=1000 Ngrid=100 run: 21 Jul 2009 17:33 mac 10.4.11 ppc

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-21 Thread John Hunter
On Tue, Jul 21, 2009 at 10:51 AM, Domenico Nappo wrote: > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtkagg.py", line > 14, in >   from matplotlib.backends._gtkagg import agg_to_gtk_drawable > ImportError: No module named _gtkagg > > I have the suspect that matplotlib windows suppo

Re: [Matplotlib-users] interactive graphing, without ipython

2009-07-21 Thread Matthias Michler
Hi Blaine, let me first of all give you the reference to some documentation about the usage of show: http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show Furthermore I may recommend you to replace your call of show in 'p' by a call of draw, which will yield the expected behaviour in ip

[Matplotlib-users] I really can't get into hist() barstacked

2009-07-21 Thread Sandro Tosi
Hi all, I'd like to do a histogram with barstacked style. Well, I'm not able to make it in any way :( - what is the format of the the data to pass? - what's the value of bins? (related to the above question, I suppose) for example, let's say I want to plot this series s1 = 2,3,6,3,1 s2 = 1,2,2,4

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-21 Thread Domenico Nappo
Thanks for your reply, anyway. I've tried to change the backend to GTKAgg and now when I startt ipython -pylab I receive: Traceback (most recent call last): File "C:\Python25\scripts\ipython.py", line 28, in IPython.Shell.start().mainloop() File "C:\Python25\Lib\site-packages\IPython\Shell.p

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-21 Thread Jae-Joon Lee
As the warning message indicates, I think this is a backend issue. The recommended backend (for screen display) is the Agg family, e.g., TkAgg, GTKAgg, etc. I rarely use Windows and I never used matplotlib on Windows, so there is not much I can help. I'm not sure which backend is available on Wind

[Matplotlib-users] setting user defined color map as default

2009-07-21 Thread Philipp Lies
Hi, I just created a hsv-like color map with gray levels only, now I'd like to use this as default color map. But how? Calling it like hsv() does not work and I did not find a hint in the documentation how to set a user defined color map interactively as default color map. Cheers Philipp -- Vi