[Matplotlib-users] setting user defined color map as default
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 -- View this message in context: http://www.nabble.com/setting-user-defined-color-map-as-default-tp24587528p24587528.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] I really can't get into hist() barstacked
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,1 s3 = 4,1,0,3,7 what's the format of data to pass to hist() ? by row? by column? Thanks a lot in advance, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problems with autofmt_xdate()
On Tue, Jul 21, 2009 at 10:51 AM, Domenico Nappodomenico.na...@gmail.com wrote: C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtkagg.py, line 14, in module from matplotlib.backends._gtkagg import agg_to_gtk_drawable ImportError: No module named _gtkagg I have the suspect that matplotlib windows support simply doesn't exist:) I'll try prepackaged windows distributions like EPD or Python(x,y) and hope this will solve this issue... I'm pretty sure they do not package mpl with the gtk backend, but Christoph Gohlke has a version that does http://www.lfd.uci.edu/~gohlke/#pythonlibs -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] speeding-up griddata()
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 time: 0.027 sec trigrid: build Triangulation 1000 time: 0.0059 sec trigrid 100 linear corners: 0 1 2 1 time: 0.5 sec trigrid 100 nn_grid corners: 0 1 2 1 time: 0.49 sec trigrid 100 nn_unstruct corners: 0 1 2 1 Correct me: if all 3 methods do gridpoint-to-triangle in the same way, then the huge diff is in find-neighboring-triangles (6 on average ?), not in gridpoint-to-triangle ? This is with the _delaunay.so that comes with the mac 98.5.3 egg, however that was compiled (-O3 ?) What to do ? 1) does it matter, how many people care ? (all who believe in telekinesis, raise my right hand) 2) natgrid ? don't see it in matplotlib.sf.net 3) stick with fast linear, smooth the triangle planes a la 3t^2 - 2t^3 or fancier smoothing In any case, add griddata( ... method = linear / nn ... ) so users have a choice. Can a real user or two tell us about the flow, with some rough numbers for Ntri Ngrid Npix -- Ntri = nr original sample points, say 1000 Ngrid 100 x 100 Npix 800 x 600 ? (Ntri - Ngrid slowly and accurately, then Ngrid - Npix w fast inaccurate image interpolation ? hmm.) cheers -- denis -- View this message in context: http://www.nabble.com/speeding-up-griddata%28%29-tp24467055p24591133.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4
On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzeneckerl...@gmx.at 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 is incorrectly sized. If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put it in a QWidget it is shown correctly. Could you be more specific? What does incorrectly sized mean? What do you mean by the widget is too big, as opposed to shown correctly? Is this really a PyQt issue, or is it specific to matplotlib? If the latter we should continue the discussion on the mpl mailing list instead of cross-posting. Darren -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4
On Tue, Jul 21, 2009 at 2:47 PM, Lukas Hetzeneckerl...@gmx.at 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 sure of the cause I posted it to both lists. Please keep in mind that these are both heavily subscribed lists. It would be better not to burden the pyqt list with suspected matplotlib problems. What versions of qt, pyqt and matplotlib are you using? I have qt-4.5.2, PyQt-4.5.2, and an up to date matplotlib svn checkout, and I don't see a problem. Maybe recent changes in svn have fixed the problem, you could try downloading backend_qt4.py and backend_qt4agg.py from http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/backends/ if you can't build an svn checkout. Darren -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] adjusting the height of rectangle legend handles
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 mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] adjusting the height of rectangle legend handles
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 patches: p.set_height(20) # height in point. you can also adjust y positionwith set_y method. Note that y=0 is the baseline. Regards, -JJ On Tue, Jul 21, 2009 at 3:30 PM, Chuck Pepe-Ranneycpep...@mines.edu wrote: 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 mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4
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 Daledsdal...@gmail.com wrote: On Tue, Jul 21, 2009 at 2:47 PM, Lukas Hetzeneckerl...@gmx.at 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 sure of the cause I posted it to both lists. Please keep in mind that these are both heavily subscribed lists. It would be better not to burden the pyqt list with suspected matplotlib problems. What versions of qt, pyqt and matplotlib are you using? I have qt-4.5.2, PyQt-4.5.2, and an up to date matplotlib svn checkout, and I don't see a problem. Maybe recent changes in svn have fixed the problem, you could try downloading backend_qt4.py and backend_qt4agg.py from http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/ lib/matplotlib/backends/ if you can't build an svn checkout. Forgot the attachment. -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users