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
(13) |
2
(3) |
3
(4) |
4
(24) |
5
(12) |
6
(11) |
7
(14) |
8
(17) |
9
(3) |
10
(5) |
11
(23) |
12
(7) |
13
(9) |
14
(17) |
15
(1) |
16
(2) |
17
(2) |
18
(11) |
19
(14) |
20
(9) |
21
(13) |
22
(12) |
23
(1) |
24
|
25
(7) |
26
(11) |
27
(20) |
28
(19) |
29
(11) |
30
(1) |
From: darkside <in....@gm...> - 2007-06-29 18:01:04
|
It's unbeliable. Yes, it works now!!! At least.............. I had spend a lot of time with these! So maybe is it a bug? Matplotlib developers: here you have a bug. Thank you very much for your help, I coud never have thougt that it was the problem. 2007/6/28, Matthias Michler <Mat...@gm...>: > > Hello darkside, > > I tried your example and it works for me (with mpl-svn) using GTKAgg and > doesn't work (like you reported) using TKAgg (Is this a bug?). > Maybe you can switch to GTKAgg? > Otherwise you should report the mpl-version you are using. > >------------------------------------- > import matplotlib > #matplotlib.use("TKAgg") > matplotlib.use("GTKAgg") > import pylab > >--------------------------------------- > > best regards, > Matthias > > On Thursday 28 June 2007 19:39, darkside wrote: > > Hello everyone, > > I'm trying to do a program that opens two different plots and select one > > point of each one with a mouse event. Here you have my example: > > > > > > -------------------------- > > import pylab > > > > def click(event): > > global x # allow to change global variable > > if event.button == 1: > > if event.inaxes: > > x = event.xdata # change global variable > > print " x - intern = ", x > > pylab.disconnect(cid) > > pylab.close() > > return x > > > > xlist = [] # list for x values > > global x > > #for i in xrange(4): > > fig = pylab.figure() > > ax = fig.add_subplot(111) > > pylab.title('primera') > > cid = pylab.connect('button_press_event', click) > > pylab.show() > > print " x - extern = ", x > > xlist.append(x) > > pylab.close() > > > > fig = pylab.figure() > > > > ax = fig.add_subplot(111) > > pylab.title('segunda') > > cid = pylab.connect('button_press_event', click) > > pylab.show() > > print " x - extern = ", x > > xlist.append(x) > > pylab.close() > > -------------------------------------------------- > > The problem is that the click event only works with the first plot, in > the > > second one I get the plot, but not the mouse event. So my output is: > > x - intern = 0.696277915633 > > x - extern = 0.696277915633 > > x - extern = 0.696277915633 > > As you see, I only get the x-intern once. > > > > Does anybody know what I'm doing wrong? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: John H. <jd...@gm...> - 2007-06-29 15:25:53
|
On 6/29/07, Matt Newville <new...@ca...> wrote: > I don't think you need to change the wx backend to make a MPL plot > appear in a dockable pane. You can definitely create a wx.Panel and > put a MPL Figure in it such as (untested code): But he wants to use pylab in a shell in his wx environment.... JDH |
From: Rein v. d. B. <re...@sc...> - 2007-06-29 15:23:15
|
Thanks! does this also allows the use of the pylab interface? I would like to use pylab from the command line (in a pycrust shell that i can embed in a dockable window) and let the figures pop-up in a dockable window too. But still from the command line use the same commands as i would for pylab from say ipython. Regards Rein On Fri, 2007-06-29 at 10:17 -0500, Matt Newville wrote: > Rein, > > I don't think you need to change the wx backend to make a MPL plot > appear in a dockable pane. You can definitely create a wx.Panel and > put a MPL Figure in it such as (untested code): > > <untested code snippet> > import wx > import matplotlib > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg > from matplotlib.figure import Figure > > class MyPlotPanel(wx.Panel): > def __init__(self, parent, **kw): > wx.Panel.__init__(self, parent, -1, **kw) > self.fig = Figure(self,(6.0,4.0), dpi=96) > self.axes = self.fig.add_axes([0.15,0.15,0.75,0.75]) > self.canvas = FigureCanvasWxAgg(self,-1, self.fig) > > </untested code snippet> > > and then use self.axes.plot() (or other methods) and canvas.draw(). > Of course, you'll have to put that Panel someplace. I haven't tried > to make a plot in a dockable window myself, but I'd be surprised if > you couldn't do it. > > Take a look at wxmpl http://agni.phys.iit.edu/~kmcivor/wxmpl/ > and/or my own PlotPanel code from MPlot: > http://cars9.uchicago.edu/~newville/Python/MPlot/ > and/or read http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx > for more hints and examples. > > Cheers, > > --Matt Newville |
From: Matt N. <new...@ca...> - 2007-06-29 15:17:30
|
Rein, I don't think you need to change the wx backend to make a MPL plot appear in a dockable pane. You can definitely create a wx.Panel and put a MPL Figure in it such as (untested code): <untested code snippet> import wx import matplotlib from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg from matplotlib.figure import Figure class MyPlotPanel(wx.Panel): def __init__(self, parent, **kw): wx.Panel.__init__(self, parent, -1, **kw) self.fig = Figure(self,(6.0,4.0), dpi=96) self.axes = self.fig.add_axes([0.15,0.15,0.75,0.75]) self.canvas = FigureCanvasWxAgg(self,-1, self.fig) </untested code snippet> and then use self.axes.plot() (or other methods) and canvas.draw(). Of course, you'll have to put that Panel someplace. I haven't tried to make a plot in a dockable window myself, but I'd be surprised if you couldn't do it. Take a look at wxmpl http://agni.phys.iit.edu/~kmcivor/wxmpl/ and/or my own PlotPanel code from MPlot: http://cars9.uchicago.edu/~newville/Python/MPlot/ and/or read http://www.scipy.org/Cookbook/Matplotlib/EmbeddingInWx for more hints and examples. Cheers, --Matt Newville |
From: John H. <jd...@gm...> - 2007-06-29 14:47:47
|
On 6/29/07, Rein van den Boomgaard <re...@sc...> wrote: > OK that is the file that i looked into already. Is the backend > functionality i need really concentrated in only these files? > (amazing..) pretty much - - there is a pretty tight segregation between the figure and the gui. > BTW is there a design document to get some grasp on the architecture of > matplotlib / pylab? It seems that most documentation concentrates on > describing pylab. Probably most people are using pylab (as i do most of > the time...). backend_template.py and backend_bases.py are good starting points. There is a chapter in the user's guide and some resources at http://matplotlib.sourceforge.net/faq.html#OO JDH > > Regards > Rein > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Thanos P. <pt...@gm...> - 2007-06-29 14:40:59
|
Hello list, I am plotting some time series data, and the ranges vary dramatically. I cannot find a way to configure the major and minor ticking (hours and days respectively) to scale automatically: if the range is too large, put a tick every 8 hours instead of one, or even place a minor day tick every week and dont do any hour ticking. ax.plot_date(date2num(times),points,'-',color="blue") days = DayLocator() daysFmt = DateFormatter('%d/%m') ax.xaxis.set_minor_locator(days) ax.xaxis.set_minor_formatter(daysFmt) hours = HourLocator() hours.autoscale() hoursFmt = DateFormatter('%H') ax.xaxis.set_major_locator(hours) ax.xaxis.set_major_formatter(hoursFmt) for tick in ax.xaxis.get_minor_ticks(): tick.set_pad(13) The pad trick is a cool answer I got in a previous post. |
From: Rein v. d. B. <re...@sc...> - 2007-06-29 14:39:41
|
> On 6/29/07, Rein van den Boomgaard <re...@sc...> wrote: > > thanks for answering. I have seen the examples using the oo mpl api, > but > > i would like to use the pylab interface from the shell i'm using > (also > > in the wx GUI). I'm aiming at a very simplified matlab like > interface > > where the plots apear in the dockable windows. > > You will probably need to write your own modified backend based on > backend_wx and backend_wxagg, that replaces the new_figure_manager and > FigureManager code with some custom functionality to use your panes. > > OK that is the file that i looked into already. Is the backend functionality i need really concentrated in only these files? (amazing..) I'll give it a try. BTW is there a design document to get some grasp on the architecture of matplotlib / pylab? It seems that most documentation concentrates on describing pylab. Probably most people are using pylab (as i do most of the time...). Regards Rein |
From: Nicolas <nic...@ya...> - 2007-06-29 13:59:37
|
Hi, I can figure the first steps : something like : matrix = [] buffer = self.get_renderer().tostring_argb() l, h = self.GetSize() for ligne in xrange(h): matrix.append([]) for colonne in xrange(l): i = 4*(ligne*h + colonne) pixel = buffer[i:i+4] matrix[-1].append(pixel) zone_to_export = array(matrix)[pixely0:pixely1, pixelx0:pixelx1] new_buffer = buffer("".join("".join(elt for elt in ligne) for ligne in zone_to_export )) But then I don't know what to with this new buffer. I tried to create a new RenderAgg instance, so as to use its png export facilities. r = RendererAgg(pixelx1 - pixelx0, pixely1 - pixely0, Value(dpi)) ... r._renderer.write_png(nom) But I don't know what to put between the two previous lines. How may I load a buffer content into a RenderAgg instance ? I suppose I may use something like : r.draw_image(0, 0, im) but what is the correct format for im ? Is there an Image class in matplotlib (I looked for, but didn't find). How may I convert my buffer ? Thanks a lot, Nicolas How may I transform my buffer into an image ? On 6/28/07, John Hunter <jd...@gm...> wrote: > > On 6/28/07, Nicolas <nic...@ya...> wrote: > > Thanks for your reply. > > > > However, I don't want to had a PIL dependency. > > > > Is there any other method, using only matplotlib or wx ? > > agg offers methods to convert the image pixel buffer to strings or > buffers, which you could then convert to numpy arrays, so a slice > extraction, and reconvert back to a buffer and ultimately a PNG. I > don't have time right now to write some example code, but you may want > to poke around in backend_agg to see if you can figure it out, and if > not remind me next week. > > Thanks, > JDH > |
From: Rein v. d. B. <re...@sc...> - 2007-06-29 13:06:43
|
correcting the previous post: the plot() works from the Shell, so the 'only' problem now is to force the plot in a pane and not in a frame... Rein |
From: Rein v. d. B. <re...@sc...> - 2007-06-29 12:55:06
|
Dear All, Let me explain what i have in mind: - wx widgets AUI interface with dockable panes + editor pane (OK) + (pycrust) shell pane (mostly OK) + figure panes The last one is the important one now. I would like the figure command in matplotlib/pylab to use a pane in my GUI instead of a frame. I've seen the embed-in-wx-example but it seems you then lose the convenient pylab interface for plotting. >From the Shell from pycrust i can import pylab and do anything except showing the plot. The figure window shows up with a show() (after a plot()) but then it draws nothing. Can anyone tell me what is going wrong and how i could solve the problem. Regards Rein |
From: Edin S. <edi...@gm...> - 2007-06-29 05:33:04
|
Hi Alexander, On 6/28/07, Alexander Dietz <Ale...@as...> wrote: > Hi, > > I have problems installing matplotlib 0.90.1. An error occurs when doing > "python setup.py build": > > /usr/include/features.h:150:1: warning: this is the location of the previous > definition > src/_ns_backend_agg.cpp: In member function `Py::Object > RendererAgg::write_png(const Py::Tuple&)': > src/_ns_backend_agg.cpp:2040: error: `png_structp' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2040: error: (Each undeclared identifier is reported > only once for each function it appears in.) > src/_ns_backend_agg.cpp:2040: error: expected `;' before "png_ptr" > src/_ns_backend_agg.cpp:2041: error: `png_infop' undeclared (first use this > function) > src/_ns_backend_agg.cpp:2041: error: expected `;' before "info_ptr" > src/_ns_backend_agg.cpp:2042: error: aggregate `png_color_8_struct sig_bit' > has incomplete type and cannot be defined > src/_ns_backend_agg.cpp:2043: error: `png_uint_32' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2043: error: expected `;' before "row" > src/_ns_backend_agg.cpp:2045: error: `png_bytep' undeclared (first use this > function) > src/_ns_backend_agg.cpp:2045: error: `row_pointers' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2045: error: `png_bytep' has not been declared > src/_ns_backend_agg.cpp:2046: error: `row' undeclared (first use this > function) > src/_ns_backend_agg.cpp:2057: error: `png_ptr' undeclared (first use this > function) > src/_ns_backend_agg.cpp:2057: error: `PNG_LIBPNG_VER_STRING' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2057: error: `png_create_write_struct' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2064: error: `info_ptr' undeclared (first use this > function) > src/_ns_backend_agg.cpp:2064: error: `png_create_info_struct' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2067: error: `png_destroy_write_struct' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2079: error: `png_init_io' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2082: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2082: error: `PNG_INTERLACE_NONE' undeclared (first > use this function) > src/_ns_backend_agg.cpp:2083: error: `PNG_COMPRESSION_TYPE_BASE' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2083: error: `PNG_FILTER_TYPE_BASE' undeclared > (first use this function) > src/_ns_backend_agg.cpp:2083: error: `png_set_IHDR' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2092: error: `png_set_sBIT' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2094: error: `png_write_info' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2095: error: `png_write_image' undeclared (first use > this function) > src/_ns_backend_agg.cpp:2096: error: `png_write_end' undeclared (first use > this function) > error: command 'gcc' failed with exit status 1 You probably need to install the header files for libpng. On my Ubuntu system the package name is libpng12-dev > Any ideas what I can do? > Also, how to install matplotlib in an other directory? I tried: > > python setup.py --prefix=/home/Install install > and > >python setup.py install --prefix=/home/Install > > but both commands did not work, although it is written I shall use the > '--prefix' argument to specify a different directory !?! > > Any ideas? Is /home/Install on your Python search path ( http://docs.python.org/inst/search-path.html )? HTH, Edin |