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) |
On Tue, Jun 19, 2007 at 02:12:28PM +0200, David Tremouilles wrote: > Pyplotsuite is another pygtk project using matplotlib. > It is developed by Antonino Ingargiola. > http://pyplotsuite.sourceforge.net/ > Could be maybe interesting to join the effort on providing nice pygtk > tools for matplotlib sharing common elements of this two projects. > Just a suggestion... Interesting project. Thanks for the link, I didn't know this project. > I'm very pleased to see there is an active and growing community using > matplotlib together with pygtk. I am using pygtk and matplotlib in my work for building interfaces to data analysis programs (numpy, scipy and C). Antoine
On Tue, Jun 19, 2007 at 08:46:17AM -0500, John Hunter wrote: > * you may want to use a gtk.Table for your label/entry pairs in your > dialog editor. Everything will line up much more nicely It was on my TODO list. Now it's done. > * you should not explicitly require pygtk 2.0. Noone is using pygtk1 > anymore and this will cause some pygth2 installations to fail (like > mine!) OK. I never understood indeed why in most of the pygtk exemple this line was present. I have removed it. > * you may want to look at the line editor dialog in backend_gtk.py for > inspiration. This uses drop down menus for linestyles, color dialog > boxes to pick colors, etc... I'll paste in the code below Ok, I'll have a look. I was thinking of this kind of menu. Thanks, Antoine
I have an array of absolute magnitudes Hlist and would like to plot a cumulative histogram. Is there an easy way to do this in matplotlib? Cheers Tommy
On 6/19/07, David Tremouilles <dav...@gm...> wrote: > Where can I find the lineprops.glade file ? It should be in mpl-data but it was removed from svn at some point. I just tried readding it but svn is not letting me commit. I'll attach it here
Where can I find the lineprops.glade file ? Thanks in advance, David 2007年6月19日, John Hunter <jd...@gm...>: > On 6/19/07, Antoine Sirinelli <mat...@mo...> wrote: > > Hi, > > > > I have written a small pygtk script to allow dynamic editing of the > > current graphs. It is useful in interactive use of matplotlib. It can > > handle figures, axes, text, images, lines properties. You can copy lines > > from one axes to an other one or delete elements. Finally you can save > > the data in ASCII. Before doing more developments, I'd like to know if > > such a tool already exists. Otherwise, your comments are welcome. > > > > > Hi Antonione -- > > this is a nice start. A couple of suggestions > > * you may want to use a gtk.Table for your label/entry pairs in your > dialog editor. Everything will line up much more nicely > > * you should not explicitly require pygtk 2.0. Noone is using pygtk1 > anymore and this will cause some pygth2 installations to fail (like > mine!) > > * you may want to look at the line editor dialog in backend_gtk.py for > inspiration. This uses drop down menus for linestyles, color dialog > boxes to pick colors, etc... I'll paste in the code below > > Thanks, > JDH > > class DialogLineprops: > """ > A GUI dialog for controlling lineprops > """ > signals = ( > 'on_combobox_lineprops_changed', > 'on_combobox_linestyle_changed', > 'on_combobox_marker_changed', > 'on_colorbutton_linestyle_color_set', > 'on_colorbutton_markerface_color_set', > 'on_dialog_lineprops_okbutton_clicked', > 'on_dialog_lineprops_cancelbutton_clicked', > ) > > linestyles = ( > '-' , > '--' , > '-.' , > ',' , > 'steps', > 'None' , > ) > > linestyled = dict([ (s,i) for i,s in enumerate(linestyles)]) > > > markers = ( > 'None', > '.' , > ',' , > 'o' , > 'v' , > '^' , > '<' , > '>' , > '1' , > '2' , > '3' , > '4' , > 's' , > 'p' , > 'h' , > 'H' , > '+' , > 'x' , > 'D' , > 'd' , > '|' , > '_' , > ) > > markerd = dict([(s,i) for i,s in enumerate(markers)]) > > def __init__(self, lines): > > datadir = matplotlib.get_data_path() > gladefile = os.path.join(datadir, 'lineprops.glade') > if not os.path.exists(gladefile): > raise IOError('Could not find gladefile lineprops.glade in > %s'%datadir) > > self._inited = False > self._updateson = True # suppress updates when setting widgets manually > self.wtree = gtk.glade.XML(gladefile, 'dialog_lineprops') > self.wtree.signal_autoconnect(dict([(s, getattr(self, s)) for > s in self.signals])) > > self.dlg = self.wtree.get_widget('dialog_lineprops') > > self.lines = lines > > cbox = self.wtree.get_widget('combobox_lineprops') > cbox.set_active(0) > self.cbox_lineprops = cbox > > cbox = self.wtree.get_widget('combobox_linestyles') > for ls in self.linestyles: > cbox.append_text(ls) > cbox.set_active(0) > self.cbox_linestyles = cbox > > cbox = self.wtree.get_widget('combobox_markers') > for m in self.markers: > cbox.append_text(m) > cbox.set_active(0) > self.cbox_markers = cbox > self._lastcnt = 0 > self._inited = True > > > def show(self): > 'populate the combo box' > self._updateson = False > # flush the old > cbox = self.cbox_lineprops > for i in range(self._lastcnt-1,-1,-1): > cbox.remove_text(i) > > # add the new > for line in self.lines: > cbox.append_text(line.get_label()) > cbox.set_active(0) > > self._updateson = True > self._lastcnt = len(self.lines) > self.dlg.show() > > def get_active_line(self): > 'get the active line' > ind = self.cbox_lineprops.get_active() > line = self.lines[ind] > return line > > > def get_active_linestyle(self): > 'get the active lineinestyle' > ind = self.cbox_linestyles.get_active() > ls = self.linestyles[ind] > return ls > > def get_active_marker(self): > 'get the active lineinestyle' > ind = self.cbox_markers.get_active() > m = self.markers[ind] > return m > > def _update(self): > 'update the active line props from the widgets' > if not self._inited or not self._updateson: return > line = self.get_active_line() > ls = self.get_active_linestyle() > marker = self.get_active_marker() > line.set_linestyle(ls) > line.set_marker(marker) > > button = self.wtree.get_widget('colorbutton_linestyle') > color = button.get_color() > r, g, b = [val/65535. for val in color.red, color.green, color.blue] > line.set_color((r,g,b)) > > button = self.wtree.get_widget('colorbutton_markerface') > color = button.get_color() > r, g, b = [val/65535. for val in color.red, color.green, color.blue] > line.set_markerfacecolor((r,g,b)) > > line.figure.canvas.draw() > > > > def on_combobox_lineprops_changed(self, item): > 'update the widgets from the active line' > if not self._inited: return > self._updateson = False > line = self.get_active_line() > > ls = line.get_linestyle() > if ls is None: ls = 'None' > self.cbox_linestyles.set_active(self.linestyled[ls]) > > marker = line.get_marker() > if marker is None: marker = 'None' > self.cbox_markers.set_active(self.markerd[marker]) > > r,g,b = colorConverter.to_rgb(line.get_color()) > color = gtk.gdk.Color(*[int(val*65535) for val in r,g,b]) > button = self.wtree.get_widget('colorbutton_linestyle') > button.set_color(color) > > r,g,b = colorConverter.to_rgb(line.get_markerfacecolor()) > color = gtk.gdk.Color(*[int(val*65535) for val in r,g,b]) > button = self.wtree.get_widget('colorbutton_markerface') > button.set_color(color) > self._updateson = True > > def on_combobox_linestyle_changed(self, item): > self._update() > > def on_combobox_marker_changed(self, item): > self._update() > > def on_colorbutton_linestyle_color_set(self, button): > self._update() > > def on_colorbutton_markerface_color_set(self, button): > 'called colorbutton marker clicked' > self._update() > > def on_dialog_lineprops_okbutton_clicked(self, button): > self._update() > self.dlg.hide() > > def on_dialog_lineprops_cancelbutton_clicked(self, button): > self.dlg.hide() > > > > You can find the script here (Quick & Dirty coding style) : > > http://mpl-properties.googlecode.com/svn/trunk/mpl_properties.py > > > > to test it, in an interactive pylab session with figures and plots, just > > type these 2 commands: > > > > import mpl_properties > > mpl_properties.properties() > > > > Antoine > > > > > > ------------------------------------------------------------------------- > > 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 > > > > ------------------------------------------------------------------------- > 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 >
On 6/14/07, Stephen George <ste...@op...> wrote: > This is absolutely fantastic, does everything I want, 1/2 hr after > getting to work, I had it up and running in my application. > > I do have a question though. > > I had not seen mention of SpanSelector before in documentation. > And I do feel confusion about where to find the best documentation. Sorry for the delayed response. The best place to start is in the matplotlib examples directory. There are some 200 odd examples johnh@flag:examples> find . -name "*.py"|wc 233 233 4420 Almost every feature in mpl is illustrated there with working example code. Yes it would be nice to have a comprehensive user's guide, but until then, the path to enlightenment is to work through the examples. In particular, in the examples/widgets dir, you'll find widgets/span_selector.py Hope this helps, JDH
On 6/18/07, Thanos Panousis <pt...@gm...> wrote: > Hello everybody and a bit thanks to the matplotlib team. Its great stuff. > > I would like to place the minor ticks for days, lower than the major ticks > for hours, so that they are visible. Right now they overlap each other. I > would like to achieve a result like > > 11:00 12:00 01:00 > | > Monday > > The vertical line is not important, I just need days to be lower than hours. > > The pythonic API could certainly use more documentation. Pylab is good but > only for working in the same fashion as matlab. I think you might get what you want by setting the tick "pad". See the help for matplotlib.axis.Tick. From the python shell type import matplotlib.axis help(matplotlib.axis.Tick) or see the online documentation at http://matplotlib.sourceforge.net/matplotlib.axis.html#Tick Eg, for tick in ax.xaxis.get_major_ticks(): tick.set_pad(12) You can also set the default for this parameter in your configuration file. See http://matplotlib.sourceforge.net/matplotlibrc JDH
On 6/19/07, tocer <toc...@gm...> wrote: > I have a project coding with Delphi+p4d, and I wish embeded pylab in it, but I > don't know how to do it. > > Any suggestion is appreciate. You should follow the lead of one of the *Agg backends, eg backend_qtagg4.py. The basic approach is to use some GUI library for window management, buttons, etc, and use the matplotlib Agg rendering library to create your image. That way you don't have to worry about any of the GUI drawing functions, and can just transfer the Agg canvas into the GUI canvas via a pixel buffer transfer. See lib/matplotlib/backends/backend_template.py for more info -- if you use the approach suggested above, you will not need to implemented the renderer or graphics context classes, only the figure canvas and manager. JDH
On 6/19/07, Antoine Sirinelli <mat...@mo...> wrote: > Hi, > > I have written a small pygtk script to allow dynamic editing of the > current graphs. It is useful in interactive use of matplotlib. It can > handle figures, axes, text, images, lines properties. You can copy lines > from one axes to an other one or delete elements. Finally you can save > the data in ASCII. Before doing more developments, I'd like to know if > such a tool already exists. Otherwise, your comments are welcome. > Hi Antonione -- this is a nice start. A couple of suggestions * you may want to use a gtk.Table for your label/entry pairs in your dialog editor. Everything will line up much more nicely * you should not explicitly require pygtk 2.0. Noone is using pygtk1 anymore and this will cause some pygth2 installations to fail (like mine!) * you may want to look at the line editor dialog in backend_gtk.py for inspiration. This uses drop down menus for linestyles, color dialog boxes to pick colors, etc... I'll paste in the code below Thanks, JDH class DialogLineprops: """ A GUI dialog for controlling lineprops """ signals = ( 'on_combobox_lineprops_changed', 'on_combobox_linestyle_changed', 'on_combobox_marker_changed', 'on_colorbutton_linestyle_color_set', 'on_colorbutton_markerface_color_set', 'on_dialog_lineprops_okbutton_clicked', 'on_dialog_lineprops_cancelbutton_clicked', ) linestyles = ( '-' , '--' , '-.' , ',' , 'steps', 'None' , ) linestyled = dict([ (s,i) for i,s in enumerate(linestyles)]) markers = ( 'None', '.' , ',' , 'o' , 'v' , '^' , '<' , '>' , '1' , '2' , '3' , '4' , 's' , 'p' , 'h' , 'H' , '+' , 'x' , 'D' , 'd' , '|' , '_' , ) markerd = dict([(s,i) for i,s in enumerate(markers)]) def __init__(self, lines): datadir = matplotlib.get_data_path() gladefile = os.path.join(datadir, 'lineprops.glade') if not os.path.exists(gladefile): raise IOError('Could not find gladefile lineprops.glade in %s'%datadir) self._inited = False self._updateson = True # suppress updates when setting widgets manually self.wtree = gtk.glade.XML(gladefile, 'dialog_lineprops') self.wtree.signal_autoconnect(dict([(s, getattr(self, s)) for s in self.signals])) self.dlg = self.wtree.get_widget('dialog_lineprops') self.lines = lines cbox = self.wtree.get_widget('combobox_lineprops') cbox.set_active(0) self.cbox_lineprops = cbox cbox = self.wtree.get_widget('combobox_linestyles') for ls in self.linestyles: cbox.append_text(ls) cbox.set_active(0) self.cbox_linestyles = cbox cbox = self.wtree.get_widget('combobox_markers') for m in self.markers: cbox.append_text(m) cbox.set_active(0) self.cbox_markers = cbox self._lastcnt = 0 self._inited = True def show(self): 'populate the combo box' self._updateson = False # flush the old cbox = self.cbox_lineprops for i in range(self._lastcnt-1,-1,-1): cbox.remove_text(i) # add the new for line in self.lines: cbox.append_text(line.get_label()) cbox.set_active(0) self._updateson = True self._lastcnt = len(self.lines) self.dlg.show() def get_active_line(self): 'get the active line' ind = self.cbox_lineprops.get_active() line = self.lines[ind] return line def get_active_linestyle(self): 'get the active lineinestyle' ind = self.cbox_linestyles.get_active() ls = self.linestyles[ind] return ls def get_active_marker(self): 'get the active lineinestyle' ind = self.cbox_markers.get_active() m = self.markers[ind] return m def _update(self): 'update the active line props from the widgets' if not self._inited or not self._updateson: return line = self.get_active_line() ls = self.get_active_linestyle() marker = self.get_active_marker() line.set_linestyle(ls) line.set_marker(marker) button = self.wtree.get_widget('colorbutton_linestyle') color = button.get_color() r, g, b = [val/65535. for val in color.red, color.green, color.blue] line.set_color((r,g,b)) button = self.wtree.get_widget('colorbutton_markerface') color = button.get_color() r, g, b = [val/65535. for val in color.red, color.green, color.blue] line.set_markerfacecolor((r,g,b)) line.figure.canvas.draw() def on_combobox_lineprops_changed(self, item): 'update the widgets from the active line' if not self._inited: return self._updateson = False line = self.get_active_line() ls = line.get_linestyle() if ls is None: ls = 'None' self.cbox_linestyles.set_active(self.linestyled[ls]) marker = line.get_marker() if marker is None: marker = 'None' self.cbox_markers.set_active(self.markerd[marker]) r,g,b = colorConverter.to_rgb(line.get_color()) color = gtk.gdk.Color(*[int(val*65535) for val in r,g,b]) button = self.wtree.get_widget('colorbutton_linestyle') button.set_color(color) r,g,b = colorConverter.to_rgb(line.get_markerfacecolor()) color = gtk.gdk.Color(*[int(val*65535) for val in r,g,b]) button = self.wtree.get_widget('colorbutton_markerface') button.set_color(color) self._updateson = True def on_combobox_linestyle_changed(self, item): self._update() def on_combobox_marker_changed(self, item): self._update() def on_colorbutton_linestyle_color_set(self, button): self._update() def on_colorbutton_markerface_color_set(self, button): 'called colorbutton marker clicked' self._update() def on_dialog_lineprops_okbutton_clicked(self, button): self._update() self.dlg.hide() def on_dialog_lineprops_cancelbutton_clicked(self, button): self.dlg.hide() > You can find the script here (Quick & Dirty coding style) : > http://mpl-properties.googlecode.com/svn/trunk/mpl_properties.py > > to test it, in an interactive pylab session with figures and plots, just > type these 2 commands: > > import mpl_properties > mpl_properties.properties() > > Antoine > > > ------------------------------------------------------------------------- > 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 >
Very nice and useful script Antoine ! I have never heard about such a script before. Pyplotsuite is another pygtk project using matplotlib. It is developed by Antonino Ingargiola. http://pyplotsuite.sourceforge.net/ Could be maybe interesting to join the effort on providing nice pygtk tools for matplotlib sharing common elements of this two projects. Just a suggestion... I'm very pleased to see there is an active and growing community using matplotlib together with pygtk. Regards, David 2007年6月19日, Antoine Sirinelli <mat...@mo...>: > Hi, > > I have written a small pygtk script to allow dynamic editing of the > current graphs. It is useful in interactive use of matplotlib. It can > handle figures, axes, text, images, lines properties. You can copy lines > from one axes to an other one or delete elements. Finally you can save > the data in ASCII. Before doing more developments, I'd like to know if > such a tool already exists. Otherwise, your comments are welcome. > > You can find the script here (Quick & Dirty coding style) : > http://mpl-properties.googlecode.com/svn/trunk/mpl_properties.py > > to test it, in an interactive pylab session with figures and plots, just > type these 2 commands: > > import mpl_properties > mpl_properties.properties() > > Antoine > > > ------------------------------------------------------------------------- > 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 >
Hi, I have written a small pygtk script to allow dynamic editing of the current graphs. It is useful in interactive use of matplotlib. It can handle figures, axes, text, images, lines properties. You can copy lines from one axes to an other one or delete elements. Finally you can save the data in ASCII. Before doing more developments, I'd like to know if such a tool already exists. Otherwise, your comments are welcome. You can find the script here (Quick & Dirty coding style) : http://mpl-properties.googlecode.com/svn/trunk/mpl_properties.py to test it, in an interactive pylab session with figures and plots, just type these 2 commands: import mpl_properties mpl_properties.properties() Antoine
I have a project coding with Delphi+p4d, and I wish embeded pylab in it, but I don't know how to do it. Any suggestion is appreciate. --tocer