You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
(12) |
2
(13) |
3
(14) |
4
(9) |
5
(9) |
6
(22) |
7
(17) |
8
(16) |
9
(19) |
10
(17) |
11
(6) |
12
|
13
(20) |
14
(21) |
15
(20) |
16
(10) |
17
(14) |
18
(3) |
19
(3) |
20
(12) |
21
(22) |
22
(26) |
23
(31) |
24
(26) |
25
(9) |
26
(4) |
27
(33) |
28
(15) |
29
(37) |
30
(26) |
|
|
From: Thomas R. <tho...@gm...> - 2009-04-30 00:52:35
|
Hi, Is there an easy way to draw a patch or a patchcollection such that it always stays at the same relative position in a set of axes, rather than at the same pixel position? So for example, I would want to plot it at (0.1,0.1) relative to the axes, and if I zoom in I would still want it to stay at (0.1,0.1) Thanks for any advice, Thomas |
From: Gökhan S. <gok...@gm...> - 2009-04-29 21:40:43
|
Hi Gary, Could you please give some information on how Traits compare to Wx or Qt? What are Traits' limits? I haven't started writing anything on GUI level yet, but spending time to understand the Traits way. Thank you. Gökhan On Wed, Apr 29, 2009 at 11:10 AM, Gary Pajer <gar...@gm...> wrote: > On Sun, Apr 26, 2009 at 6:41 PM, Gökhan SEVER <gok...@gm...> wrote: >> Hello, >> >> Thanks for the pointer Bryan. I also seen Gael's tutorial >> (http://gael-varoquaux.info/computers/traits_tutorial/index.html) >> >> To me, it seems much easier to use Traits, instead of learning WX or QT. > > It is. I had spent hours learning Tk, Wx, and Qt looking for a > "practical" gui solution ... but then I found Traits and I haven't > looked back. > >> They are still confusing to me, and seemingly Traits is there to help me >> implement what I have had in my mind for a while. >> >> Gökhan >> >> >> On Sun, Apr 26, 2009 at 2:52 AM, Bryan Cole <br...@co...> wrote: >>> >>> > I know wxPython or PyQt seems way to go on this issue. But (there is >>> > always this but :) there is Chaco on the Enthought side and with >>> > nicely and simply integration with Traits and Traits UI. >>> > >>> > Are there anybody in the group that design a similar tool for their >>> > scientific data analysis needs? Could I get some insight into this? >>> > Any recommendations or pointers? Why's and why not's? >>> >>> You can integrate matplotlib plots into a Traits app. I wrote this >>> recipe: >>> >>> http://www.scipy.org/Cookbook/EmbeddingInTraitsGUI >>> >>> Both Chaco and Matplotlib are excellent. If you want multiple >>> interactive elements in your plot (drag-able labels, cursors etc.), >>> Chaco is probably the best bet. However, for quick data-exploration >>> apps, I find matplotlib quicker to set up (it's defaults "just work", >>> whereas Chaco takes a bit more preparation). >>> >>> Either way, Traits is indispensable. >>> >>> BC >>> >>> > >>> > Thank you >>> > >>> > Gökhan >>> > >>> > ------------------------------------------------------------------------------ >>> > Crystal Reports - New Free Runtime and 30 Day Trial >>> > Check out the new simplified licensign option that enables unlimited >>> > royalty-free distribution of the report engine for externally facing >>> > server and web deployment. >>> > http://p.sf.net/sfu/businessobjects >>> > _______________________________________________ Matplotlib-users mailing >>> > list Mat...@li... >>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Crystal Reports - New Free Runtime and 30 Day Trial >>> Check out the new simplified licensign option that enables unlimited >>> royalty-free distribution of the report engine for externally facing >>> server and web deployment. >>> http://p.sf.net/sfu/businessobjects >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
From: R. P. S. <R.S...@um...> - 2009-04-29 21:31:23
|
Is there a Windows installer file for matplotlib for Python 2.6? I couldn't find one on the download page, but have to admit to being in something of a hurry and so didn't look too hard. -- R. Padraic Springuel Research Assistant Department of Physics and Astronomy University of Maine Bennett 309 Office Hours: By appointment only |
From: Mark L. <lar...@gm...> - 2009-04-29 20:06:24
|
It's been a while, please allow me to bump this... > Sorry. I use matplotlib to create PNGs graphics for display on a > web-page. I want to make the plots zoom-able. I'll use javascript to > capture the pixel positions of the user's selected zoom region on the > PNG plot. I'll then translate this into the coordinate system on the > plot and redraw it with a new x, y range. I'm having trouble > translating the initial axises into the pixel positions (essentially > where they are on the PNG image). > > For example, I use the following code to map point positions from the > coordinate system to pixel positions. I use an img map <MAP> to > provide interaction with the actual lines. > > [CODE] > > lineObj = plt.plot(Xs,Ys,marker='o')[0] > path, affine = lineObj._transformed_path.get_transformed_points_and_affine() > path = affine.transform_path(path) > for real,pixel in zip(lineObj.get_xydata(),path.vertices): > ## write <AREA> tag for each point > > [/CODE] > > I'd like to get information similar to this for the axis of the plot. > > Thanks. > |
From: Eric F. <ef...@ha...> - 2009-04-29 19:44:58
|
John Hunter wrote: > > > On Wed, Apr 29, 2009 at 11:03 AM, John Hunter <jd...@gm... > <mailto:jd...@gm...>> wrote: > > > ...but I'd like more feedback from the author or users of > fill_between > before committing that change. (That, and Eric Firing can > probably find > a much more efficient way to do the masked array manipulation... ;) > > > I'm working on a patch for this now....but I would also like Eric to > take a look when I am done since I am a masked array dummy > John, The way you did it looked OK; but since I was looking at it, I went ahead and did some rearranging and condensation to try to make the whole thing (not just the mask handling) read better. I doubt there are any significant performance differences, but I did not test that. I also added a subplot to the fill_between.py demo to illustrate the mask handling. Then I noticed a flaw in the demo plots, and added a note about it. See revision 7071. Eric |
From: Erik T. <mrl...@gm...> - 2009-04-29 17:32:18
|
Matthias, Thanks for your help. When I did ax.set_xlim((0.0, 120.0)) the 180 tick showed up although ugly on some plots because there was missing data at the 180 degrees mark. I then copied all the datapoints from the -180 degrees into new 180 degree data points (they are the supposed to be the same) and everything works well now. Erik Thompson |
From: Jae-Joon L. <lee...@gm...> - 2009-04-29 16:44:09
|
On Wed, Apr 29, 2009 at 12:21 PM, Matthias Michler <Mat...@gm...> wrote: > where the last tick is out of the xlimits. Could this be the case for your > example, too? > Nevertheless the question still would be: Is this a bug in the handling of > xticks and their corresponding labels? get_majorticklocs (and similar methods) does not return the locations of the ticks that will be plotted. It simply returns the tick values generated by the locator instance. And among them, only those within the axis limits will be drawn. My guess is that this was a design decision, not a bug. The following is a related post which includes some code snippets that can be used to retrieve tick locations inside the axis limits. http://www.nabble.com/eliminating-the-top-tick-on-an-axis-to19446256.html#a19446256 Regards, -JJ |
From: Gary P. <gar...@gm...> - 2009-04-29 16:10:11
|
On Sun, Apr 26, 2009 at 6:41 PM, Gökhan SEVER <gok...@gm...> wrote: > Hello, > > Thanks for the pointer Bryan. I also seen Gael's tutorial > (http://gael-varoquaux.info/computers/traits_tutorial/index.html) > > To me, it seems much easier to use Traits, instead of learning WX or QT. It is. I had spent hours learning Tk, Wx, and Qt looking for a "practical" gui solution ... but then I found Traits and I haven't looked back. > They are still confusing to me, and seemingly Traits is there to help me > implement what I have had in my mind for a while. > > Gökhan > > > On Sun, Apr 26, 2009 at 2:52 AM, Bryan Cole <br...@co...> wrote: >> >> > I know wxPython or PyQt seems way to go on this issue. But (there is >> > always this but :) there is Chaco on the Enthought side and with >> > nicely and simply integration with Traits and Traits UI. >> > >> > Are there anybody in the group that design a similar tool for their >> > scientific data analysis needs? Could I get some insight into this? >> > Any recommendations or pointers? Why's and why not's? >> >> You can integrate matplotlib plots into a Traits app. I wrote this >> recipe: >> >> http://www.scipy.org/Cookbook/EmbeddingInTraitsGUI >> >> Both Chaco and Matplotlib are excellent. If you want multiple >> interactive elements in your plot (drag-able labels, cursors etc.), >> Chaco is probably the best bet. However, for quick data-exploration >> apps, I find matplotlib quicker to set up (it's defaults "just work", >> whereas Chaco takes a bit more preparation). >> >> Either way, Traits is indispensable. >> >> BC >> >> > >> > Thank you >> > >> > Gökhan >> > >> > ------------------------------------------------------------------------------ >> > Crystal Reports - New Free Runtime and 30 Day Trial >> > Check out the new simplified licensign option that enables unlimited >> > royalty-free distribution of the report engine for externally facing >> > server and web deployment. >> > http://p.sf.net/sfu/businessobjects >> > _______________________________________________ Matplotlib-users mailing >> > list Mat...@li... >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: John H. <jd...@gm...> - 2009-04-29 16:07:55
|
On Wed, Apr 29, 2009 at 11:03 AM, John Hunter <jd...@gm...> wrote: > >> ...but I'd like more feedback from the author or users of fill_between >> before committing that change. (That, and Eric Firing can probably find >> a much more efficient way to do the masked array manipulation... ;) > > > I'm working on a patch for this now....but I would also like Eric to take a > look when I am done since I am a masked array dummy Here's the diff I just committed:: Index: lib/matplotlib/axes.py =================================================================== --- lib/matplotlib/axes.py (revision 7069) +++ lib/matplotlib/axes.py (working copy) @@ -5832,6 +5832,26 @@ self._process_unit_info(xdata=x, ydata=y1, kwargs=kwargs) self._process_unit_info(ydata=y2) + if where is None: + where = np.ones(len(x), np.bool) + else: + where = np.asarray(where) + + maskedx = isinstance(x, np.ma.MaskedArray) + maskedy1 = isinstance(y1, np.ma.MaskedArray) + maskedy2 = isinstance(y2, np.ma.MaskedArray) + + if (maskedx or maskedy1 or maskedy2): + if maskedx: + where = where & (~x.mask) + + if maskedy1: + where = where & (~y1.mask) + + if maskedy2: + where = where & (~y2.mask) + + # Convert the arrays so we can work with them x = np.asarray(self.convert_xunits(x)) y1 = np.asarray(self.convert_yunits(y1)) @@ -5843,10 +5863,7 @@ if not cbook.iterable(y2): y2 = np.ones_like(x)*y2 - if where is None: - where = np.ones(len(x), np.bool) - where = np.asarray(where) assert( (len(x)==len(y1)) and (len(x)==len(y2)) and len(x)==len(where)) polys = [] |
From: John H. <jd...@gm...> - 2009-04-29 16:03:50
|
On Wed, Apr 29, 2009 at 10:56 AM, Michael Droettboom <md...@st...>wrote: > I don't believe fill_between directly supports missing values -- but it > does have the where parameter for this purpose. > > We could also be smarter about how "where" is generated when none is > provided: > > if where is None: > where = (~np.ma.getmaskarray(x) & ~np.ma.getmaskarray(y1) & > ~np.ma.getmaskarray(y2)) > > ...but I'd like more feedback from the author or users of fill_between > before committing that change. (That, and Eric Firing can probably find > a much more efficient way to do the masked array manipulation... ;) I'm working on a patch for this now....but I would also like Eric to take a look when I am done since I am a masked array dummy JDH |
From: Michael D. <md...@st...> - 2009-04-29 15:56:47
|
I don't believe fill_between directly supports missing values -- but it does have the where parameter for this purpose. We could also be smarter about how "where" is generated when none is provided: if where is None: where = (~np.ma.getmaskarray(x) & ~np.ma.getmaskarray(y1) & ~np.ma.getmaskarray(y2)) ...but I'd like more feedback from the author or users of fill_between before committing that change. (That, and Eric Firing can probably find a much more efficient way to do the masked array manipulation... ;) Mike Andres Luhamaa wrote: > Hello, > I try to do fill_between two arrays, that have missing value (masked > arrays). Following code shows behaviour that seems not correct. Images > what I expect the result to be (by omitting the missing value) and > what I get by plotting the whole arrays. > > import pylab > import numpy as np > edatmax=np.array([10,4,6,9,np.nan,9,10]) > edatmax=np.ma.masked_array(edatmax,np.isnan(edatmax)) > edatmin=np.array([8,4,5,1,np.nan,8,5]) > edatmin=np.ma.masked_array(edatmin,np.isnan(edatmin)) > xtelg=np.arange(edatmax.size) > xtelg=np.ma.masked_array(xtelg,np.isnan(edatmin)) > pylab.plot(edatmax,"gx") > pylab.plot(edatmin,"r+") > # comment out to see better > pylab.fill_between(xtelg,edatmax,edatmin,facecolor='green',alpha='0.3') > # comment in to see better > #pylab.fill_between(xtelg[:4],edatmax[:4],edatmin[:4],facecolor='green',alpha='0.3') > > #pylab.fill_between(xtelg[5:],edatmax[5:],edatmin[5:],facecolor='green',alpha='0.3') > > pylab.show() > > Version of matplotlib is current cvs. > > Best regards, > Andres > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: John H. <jd...@gm...> - 2009-04-29 15:54:51
|
On Wed, Apr 29, 2009 at 10:54 AM, John Hunter <jd...@gm...> wrote: > > > fill_between does not currently support masked arrays, but I think we could > easily extend it to support the mask using the existing support for the > "where" kwarg. For now, does this behave like you expect? > > valid = ~(edatmax.mask & edatmax.mask ) > pylab.fill_between(xtelg,edatmax,edatmin,facecolor='green',alpha='0.3', > where=valid) > > Oops -- meant valid = ~(edatmin.mask & edatmax.mask ) JDH |
From: John H. <jd...@gm...> - 2009-04-29 15:54:07
|
On Wed, Apr 29, 2009 at 6:40 AM, Andres Luhamaa <and...@ut...>wrote: > Hello, > I try to do fill_between two arrays, that have missing value (masked > arrays). Following code shows behaviour that seems not correct. Images what > I expect the result to be (by omitting the missing value) and what I get by > plotting the whole arrays. > > import pylab > import numpy as np > edatmax=np.array([10,4,6,9,np.nan,9,10]) > edatmax=np.ma.masked_array(edatmax,np.isnan(edatmax)) > edatmin=np.array([8,4,5,1,np.nan,8,5]) > edatmin=np.ma.masked_array(edatmin,np.isnan(edatmin)) > xtelg=np.arange(edatmax.size) > xtelg=np.ma.masked_array(xtelg,np.isnan(edatmin)) > pylab.plot(edatmax,"gx") > pylab.plot(edatmin,"r+") > # comment out to see better > pylab.fill_between(xtelg,edatmax,edatmin,facecolor='green',alpha='0.3') > # comment in to see better > > #pylab.fill_between(xtelg[:4],edatmax[:4],edatmin[:4],facecolor='green',alpha='0.3') > > #pylab.fill_between(xtelg[5:],edatmax[5:],edatmin[5:],facecolor='green',alpha='0.3') > pylab.show() > > Version of matplotlib is current cvs. > fill_between does not currently support masked arrays, but I think we could easily extend it to support the mask using the existing support for the "where" kwarg. For now, does this behave like you expect? valid = ~(edatmax.mask & edatmax.mask ) pylab.fill_between(xtelg,edatmax,edatmin,facecolor='green',alpha='0.3', where=valid) JDH |
From: Adam <kef...@gm...> - 2009-04-29 15:33:12
|
On Wed, Apr 29, 2009 at 9:22 AM, John Hunter <jd...@gm...> wrote: > > > On Wed, Apr 29, 2009 at 9:50 AM, Adam <kef...@gm...> wrote: >> >> I would like to have access to the command line while simultaneously >> being able to interact with and/or display plots. I think this is >> what ipython does by default when you pass it a thread keyword >> (-pylab, -qt4thread, etc.). I had some trouble getting ipython to >> work correctly, but I think that had to do with passing the thread >> keyword before/after some other keywords. > > From your previous posts, I think you may have been be using ipython > incorrectly, ie mixing ipython -pylab with the matplotlib use directive. > Start with a canconical simple script, eg:: > > import matplotlib.pyplot as plt > > plt.figure(1) > plt.plot([1,2,3]) > > plt.figure(2) > plt.plot([4,5,6]) > > plt.show() > > and set your matplotlibrc to backend to TkAgg. Start ipython with:: > > > ipython -pylab > > and run your test script with:: > > In [61]: run test.py > > If that works, close everything down and set your backend to QtAgg and try > running it again in the same way and let us know what happens. It should > just work. I'm suspecting in that as you were testing and trying a lot of > things, you got yourself into a situation where multiple GUIs were competing > for attention. > >> Part of my question that I hope makes sense: Is there a way to unblock >> the command line without closing the plot window when using an >> interactive backend? > > Yes, that makes sense, and basically you need to either use TkAgg from a > regular python shell, use ipython in pylab mode with any supported backend, > or use a GUI shell. ipython also has support for embedding in GUI shells. > See also > > http://matplotlib.sourceforge.net/users/shell.html > > JDH > Thanks John. I think you answered my questions completely now. FWIW, I was not using matplotlib.use() with ipython, I was using it when calling 'python test.py' on the command line. My mistake with ipython was using an import command before -pylab, i.e.: ipython -i -c "import pyfits,matplotlib" -pylab which does not work, whereas ipython -pylab -i -c "import pyfits,matplotlib" does. Thanks for the help! |
From: John H. <jd...@gm...> - 2009-04-29 15:29:23
|
On Wed, Apr 29, 2009 at 9:59 AM, marcog <ma...@ga...> wrote: > > Hi > > I have a set of 2 dimensional data that I would like to form a histogram > of. > Each data point is defined by an x and y variable. So essentially what I > would like to obtain is a "row" of histograms as produced by the plot.hist > function, stacking them next to one another in a single 3D plot. For > example, something like [1], but I don't need it to be interpolated. > > [1] http://www.mathworks.com/matlabcentral/fx_files/14205/1/hist.jpg hexbin may be what you are looking for, which does a 2D colormapped histogram, with an optional reduce function so you can specify the intensity function over the bins http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.hexbin http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo2.html JDH |
From: John H. <jd...@gm...> - 2009-04-29 15:08:45
|
On Tue, Apr 28, 2009 at 11:24 PM, Jae-Joon Lee <lee...@gm...> wrote: > On Tue, Apr 28, 2009 at 11:09 PM, John Hunter <jd...@gm...> wrote: > > If you want the relative fontsizes in the figure window and saved figure > to > > agree, pass the same "dpi" to the figure command and savefig command. > > John, > I thought the font size (which is specified in points) is independent > of dpi, i.e., font size in "pixel" actually scales with the dpi. I > think it should be filed as a bug if the relative font size depends on > the dpi. > > Anyhow, I just did a quick test and the (relative) font size does not > seem to vary with dpi. Hmm, I must have been confused. In older versions of mpl, as you increased the dpi the fonts looked larger in relation to the rest of the figure, and that is what I was remembering. I just ran a few tests and they do scale as expected, so sorry for the noise |
From: marcog <ma...@ga...> - 2009-04-29 14:59:14
|
Hi I have a set of 2 dimensional data that I would like to form a histogram of. Each data point is defined by an x and y variable. So essentially what I would like to obtain is a "row" of histograms as produced by the plot.hist function, stacking them next to one another in a single 3D plot. For example, something like [1], but I don't need it to be interpolated. [1] http://www.mathworks.com/matlabcentral/fx_files/14205/1/hist.jpg Thanks! Marco -- View this message in context: http://www.nabble.com/Histogram-of-2D-Data-tp23296104p23296104.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Adam <kef...@gm...> - 2009-04-29 14:50:07
|
On Wed, Apr 29, 2009 at 8:29 AM, John Hunter <jd...@gm...> wrote: > > > On Wed, Apr 29, 2009 at 9:07 AM, keflavich <kef...@gm...> wrote: >> >> Since there don't seem to be any forthcoming answers, I have a somewhat >> different question. In the matplotlib FAQ, it states that using 'show()' >> puts you in the GUI mainloop >> (http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show). However, >> using plot commands on the ipython command line does not shut down the >> command line generally. I gathered from some googling that this is >> because >> ipython starts up the matplotlib graphics in a different 'thread', but I >> don't understand how this is done and most of what I've seen says it is >> bad. > > most GUI mainloops are blocking, so after you start them you cannot issue > more commands from an interactive shell. Either you need to run a GUI > shell, or in the case of ipython run the GUI in a separate thread. One > exception to this is tkinter (tkagg), which plays nicely with a standard > python shell. I understand that recent versions of pygtk work also w/o > running the mainloop in a separate thread, but I haven't dug into the > details. OK, that's very helpful. >> So, my question now: How can I exit the GUI mainloop without closing the >> graphics windows? > > This question doesn't really make sense to me. Perhaps you can clearly > describe your use case (what you need to do) rather than the proposed > solutions. I would like to have access to the command line while simultaneously being able to interact with and/or display plots. I think this is what ipython does by default when you pass it a thread keyword (-pylab, -qt4thread, etc.). I had some trouble getting ipython to work correctly, but I think that had to do with passing the thread keyword before/after some other keywords. Part of my question that I hope makes sense: Is there a way to unblock the command line without closing the plot window when using an interactive backend? Thanks, and sorry about the misunderstandings / lack of clarity, Adam |
From: John H. <jd...@gm...> - 2009-04-29 14:30:03
|
On Wed, Apr 29, 2009 at 9:07 AM, keflavich <kef...@gm...> wrote: > > Since there don't seem to be any forthcoming answers, I have a somewhat > different question. In the matplotlib FAQ, it states that using 'show()' > puts you in the GUI mainloop > (http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show). However, > using plot commands on the ipython command line does not shut down the > command line generally. I gathered from some googling that this is because > ipython starts up the matplotlib graphics in a different 'thread', but I > don't understand how this is done and most of what I've seen says it is > bad. > most GUI mainloops are blocking, so after you start them you cannot issue more commands from an interactive shell. Either you need to run a GUI shell, or in the case of ipython run the GUI in a separate thread. One exception to this is tkinter (tkagg), which plays nicely with a standard python shell. I understand that recent versions of pygtk work also w/o running the mainloop in a separate thread, but I haven't dug into the details. > > So, my question now: How can I exit the GUI mainloop without closing the > graphics windows? > This question doesn't really make sense to me. Perhaps you can clearly describe your use case (what you need to do) rather than the proposed solutions. JDH |
From: keflavich <kef...@gm...> - 2009-04-29 14:07:08
|
Since there don't seem to be any forthcoming answers, I have a somewhat different question. In the matplotlib FAQ, it states that using 'show()' puts you in the GUI mainloop (http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show). However, using plot commands on the ipython command line does not shut down the command line generally. I gathered from some googling that this is because ipython starts up the matplotlib graphics in a different 'thread', but I don't understand how this is done and most of what I've seen says it is bad. So, my question now: How can I exit the GUI mainloop without closing the graphics windows? Thanks, Adam -- View this message in context: http://www.nabble.com/Interactive-backends-very-%28suprisingly-%29-slow-for-multiple-subplots-tp23261074p23295883.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: John H. <jd...@gm...> - 2009-04-29 14:01:14
|
On Wed, Apr 29, 2009 at 2:55 AM, Gökhan SEVER <gok...@gm...> wrote: > > I would like discuss these point before start working on other api > functions and classes. Also need some explanation about them, since > pyplot is composed of functions but some other api's are mixed with > classes and functions. > > Please, contact me of the list so I can send the modified pyploy_rst.api. Hey Gökhan -- thanks for working on this. We are very happy to have documentation contributions. I don't feel strongly about how the pyplot rst file is generated, whether by extending Sphinx, using a script, or simply hand editing it. I'm actually incline toward the latter, because it would probably be nice to have some simple description in the section header, eg:: acorr - autocorrelation plots ===================== as we do on the main page. Part of the sphinx philosophy is that "hand edited" documentation cannot be fully replaced by autogenerated documentaiton, and this may be a reasonable place to do some hand editing. If you go this route, update the pyplot module, the developer's guide and the boilerplate.py script (it lives besides setup.py and is a script to generate part of pyplot) so that when developers add a new function to pyplot they know to update the api docs as well. You may want to move further discussion over to the developers list. Any changes you want to make should be posted as an svn diff to the developers list. If you don't get immediate attention, also post it as a patch to the sourceforge site, and reply to the developers list with a link to the patch -- see http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto Thanks! JDH |
From: Andres L. <and...@ut...> - 2009-04-29 11:40:40
|
Hello, I try to do fill_between two arrays, that have missing value (masked arrays). Following code shows behaviour that seems not correct. Images what I expect the result to be (by omitting the missing value) and what I get by plotting the whole arrays. import pylab import numpy as np edatmax=np.array([10,4,6,9,np.nan,9,10]) edatmax=np.ma.masked_array(edatmax,np.isnan(edatmax)) edatmin=np.array([8,4,5,1,np.nan,8,5]) edatmin=np.ma.masked_array(edatmin,np.isnan(edatmin)) xtelg=np.arange(edatmax.size) xtelg=np.ma.masked_array(xtelg,np.isnan(edatmin)) pylab.plot(edatmax,"gx") pylab.plot(edatmin,"r+") # comment out to see better pylab.fill_between(xtelg,edatmax,edatmin,facecolor='green',alpha='0.3') # comment in to see better #pylab.fill_between(xtelg[:4],edatmax[:4],edatmin[:4],facecolor='green',alpha='0.3') #pylab.fill_between(xtelg[5:],edatmax[5:],edatmin[5:],facecolor='green',alpha='0.3') pylab.show() Version of matplotlib is current cvs. Best regards, Andres |
From: Gert-Jan <gj_...@ho...> - 2009-04-29 08:51:37
|
Hey there, In my application I'd like to export plots as Enhanced Metafiles (.emf). After finding out that saving created plots as EMF generates an error, I http://www.nabble.com/EMF-export-doesn%27t-work-td22618867.html read that emf is no longer supported . Then I tried to http://www.nabble.com/How-to-add-a-new-backend--td20089848.html#a20091178 manually enable exporting as EMF , but matplit.use('emf') generates a NotImplementedError. So, I'd like to know if someone happens to know of a simple method to reimplement the support for EMF files. Thanks in advance for your time and effort! Cheers, Gert-Jan -- View this message in context: http://www.nabble.com/Manually-enable-export-as-EMF-tp23293186p23293186.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Joseph S. <jos...@gm...> - 2009-04-29 08:09:18
|
Thanks everyone, this is exactly what I wanted. -- ------------------------------------------------------------------------ Joseph Smidt <jos...@gm...> Physics and Astronomy 4129 Frederick Reines Hall Irvine, CA 92697-4575 Office: 949-824-3269 |
From: Gökhan S. <gok...@gm...> - 2009-04-29 07:55:05
|
Hello, About two months ago I was asking how to implement the following functionality for matplotlib documentation. Well today I figured it out :) I was busy with some other school work not been thinking for over twom months :P "Is there a way to get functions separately listed under each bookmark listing in the pdf file? For example if I go IV Matplotlib API section from the bookmarks menu and click the matplotlib.pyplot seb-menu I would like to see the function names listed. In addition to module indexing (where keywords highlighted back to original names) this would be a nice feature to add the pdf documentation." Enough said, here is what I did. (Thanks to Georg Brandl of Sphinx) (As of now the latest svn checkout 0.98.6svn_rev__7068 although __revision__ says: 6887, and with Sphinx 0.6.1) I have modified the pyplot_api.rst as follows: .. automodule:: matplotlib.pyplot :undoc-members: :show-inheritance: acorr ===== .. autofunction:: acorr annotate ======== .. autofunction:: annotate and other 121 manual entries. (The new PDF file is 12 pages more than original file.) While I was adding the function names I thought of myself that these could be done via a little program. I mean before Sphinx visit --in this case pyplot.py function names might read into a list and following this an appropriate rst file could be created (and this is also apply for the other api documentation as well). Or another way, these could be added to Sphinx as a feature, that is to say read function names and read docstrings, create figures etc.. and make a subsection for each item via a special syntax. The first method eliminates having a pre-written pyplot_api.rst file since this could be created via a short python script. I would like discuss these point before start working on other api functions and classes. Also need some explanation about them, since pyplot is composed of functions but some other api's are mixed with classes and functions. Please, contact me of the list so I can send the modified pyploy_rst.api. Gökhan |