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
(36) |
2
(10) |
3
(8) |
4
|
5
(4) |
6
(15) |
7
(17) |
8
(3) |
9
(8) |
10
(5) |
11
(2) |
12
(5) |
13
(5) |
14
(15) |
15
(3) |
16
(10) |
17
(6) |
18
(2) |
19
(1) |
20
(11) |
21
(33) |
22
(13) |
23
(14) |
24
(15) |
25
(4) |
26
(5) |
27
(9) |
28
(12) |
29
(7) |
30
(8) |
31
(6) |
|
On Tue, Aug 21, 2007 at 01:14:44PM +0100, Alex Pounds wrote: > 4. I need to stick a footnote in the bottom corner of my charts. Can I do > this natively in matplotlib or will I have to do it with a separate library > afterwards? For the sake of others searching the archives, here are the answers I've found out for myself so far: 4. You can do this with matplotlib: figtext(0.98, 0.05, u'©2007 Alexpounds.com', ha='right') This puts a copyright notice in the bottom right of a chart. > 5. Can I have my xtick labels oriented vertically? Yep. Just pass rotation="vertical" in to xticks(). Easy. Though this may overlap with the figtext above - I haven't got that bit sorted yet... -- Alex Pounds (Creature) .~. http://www.alexpounds.com/ /V\ http://www.ethicsgirls.com/ // \\ "Variables won't; Constants aren't" /( )\ ^`~'^
How do I set my vertical bar to be fixed width? Depending on amount of data on my x axis, the bars get created accordingly and the width gets adjusted to fit into the graph. If I have only 2 plots on the x axis then the 2 bars get stretched across the entire graph. Looks very ugly. -Alen
> > > > I am but a humble newbie, but why not simply take your figure > > object/reference and Pickle it (see > > http://docs.python.org/lib/module-pickle.html)? > > > > Won't work. Pickling only works for objects that have been designed for > it. Such design is not trivial for extension code, and has not been > done for mpl. I keep coming back to this from time-to-time and have a go a poking around in the mpl codebase but I've never figured out exactly what state the matplotlib "Lazy Values" and "BinOps" store. If this internal state could be retrieved and then later restored, then python can pickle the extension objects using the copy-reg module. It might be enough if methods were added to the BinOp objects to retrieve internal objects to which they link. You could then recursively walk through the whole lazy-value tree. To make this work, you would need to retrieve the underlying C++ objects with it's python wrapper object intact (i.e. with the same IDs) so that python references to that object created elsewhere still work. While the concept of Lazy Values is easy enough to understand, understanding how and where these objects fit in to the MPL architecture is hard. I think a little documentation or explanation of this could go a long way to helping implement this. If I could understand all the places the Lazy Values are used, I'm keen to attempt the implementation of pickle-ability. One problem for me is my C++ knowledge is ~ 0. BC > > Eric > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/
Hi Eric, On 23/08/07, Eric Emsellem <ems...@ob...> wrote: > thanks a lot for this feedback! > > Your example is quite nice indeed. However there is something I may not > have fully understand. > If I use the example you sketch, I of course need to call the displayer > class (right?), by doing something like: > > test = displayer() > > However, then I hit the same problem again: I would need to define ALL > the commands I wish to go through WITHIN the displayer class (and more > precisely into the "show_next" function), because any command put after > the "test = displayer()" would be executed anyway without waiting that I > finally hit the right mouse button. I'm not sure why this is a problem. Yes, you need to put all your code into the callback routines of displayer, but just think of it as wrapping your program code inside the class. Your __main__ code then simply becomes test = displayer()... and away you go. Also, I realised shortly after sending my email that you can of course do away with the offset class in this example, and put those methods into the displayer class too, which will make things a little simpler. > Or is there something I didn't catch which would allow me to go around this? > > (what my program is supposed to do at the end is to go through a series > of (3xdataframes), and for each dataframe in turn, use the "offset" > trick, then reinitialise everything and start with the next series... > This seems to imply that I need to specify the full set of commands > within the displayer class show_next function) > > thanks again > > Eric Angus. -- AJC McMorland, PhD Student Physiology, University of Auckland
Alex Pounds wrote: > On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote: >> I would like to save a matplotlib figure (data, title and axes label, >> plot properties, ...) to load it later on for modification. Something >> like figure.savelall("file.matplot") and later on do a >> figure.loadall("file.matplot") using an empty figure. > > I am but a humble newbie, but why not simply take your figure > object/reference and Pickle it (see > http://docs.python.org/lib/module-pickle.html)? > Won't work. Pickling only works for objects that have been designed for it. Such design is not trivial for extension code, and has not been done for mpl. Eric
On 8/23/07, Alex Pounds <al...@al...> wrote: > On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote: > > I would like to save a matplotlib figure (data, title and axes label, > > plot properties, ...) to load it later on for modification. Something > > like figure.savelall("file.matplot") and later on do a > > figure.loadall("file.matplot") using an empty figure. > I am but a humble newbie, but why not simply take your figure > object/reference and Pickle it (see > http://docs.python.org/lib/module-pickle.html)? Reasonable request, reasonable solution, but alas neither will work. The mpl extension code doesn't support pickling. JDH
On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote: > I would like to save a matplotlib figure (data, title and axes label, > plot properties, ...) to load it later on for modification. Something > like figure.savelall("file.matplot") and later on do a > figure.loadall("file.matplot") using an empty figure. I am but a humble newbie, but why not simply take your figure object/reference and Pickle it (see http://docs.python.org/lib/module-pickle.html)? -- Alex Pounds (Creature) .~. http://www.alexpounds.com/ /V\ http://www.ethicsgirls.com/ // \\ "Variables won't; Constants aren't" /( )\ ^`~'^
Hello, I would like to save a matplotlib figure (data, title and axes label, plot properties, ...) to load it later on for modification. Something like figure.savelall("file.matplot") and later on do a figure.loadall("file.matplot") using an empty figure. Did somebody already implement such a functionality? If yes Is it available somewhere or are you eager to share it? Thanks, David
Hi thanks a lot for this feedback! Your example is quite nice indeed. However there is something I may not have fully understand. If I use the example you sketch, I of course need to call the displayer class (right?), by doing something like: test = displayer() However, then I hit the same problem again: I would need to define ALL the commands I wish to go through WITHIN the displayer class (and more precisely into the "show_next" function), because any command put after the "test = displayer()" would be executed anyway without waiting that I finally hit the right mouse button. Or is there something I didn't catch which would allow me to go around this? (what my program is supposed to do at the end is to go through a series of (3xdataframes), and for each dataframe in turn, use the "offset" trick, then reinitialise everything and start with the next series... This seems to imply that I need to specify the full set of commands within the displayer class show_next function) thanks again Eric
"Lee, Young-Jin" <yo...@uc...> writes: > Then, I realized because each bar is so narrow I can't see the color of > the bars but only outside lines (I see the colors by zooming it), which > I couldn't find a way to change the color. My question is, is there any > way either 1) to get rid of the outside lines or 2) to change the color > of the lines? Thanks much in advance! To get rid of the lines, set the linewidth property of the bars to 0; to change their color, set the edgecolor property. For example, using ipython -pylab: In [31]: a=bar([1,2,3,4],[3,1,4,1],lw=0) In [32]: setp(a[1], lw=10, ec='red') Out[32]: [None, None] Here I used the abbreviations lw and ec for linewidth and edgecolor. The first command creates a bar chart where all bars have line width zero, the second modifies one of the bars to have very thick red edges. You can experiment with the properties using the pylab commands getp and setp. -- Jouni K. Seppänen http://www.iki.fi/jks
Lee, Young-Jin wrote: > Hey guys, > > > > I’m a new guy in here and amazed by the capability Matplotlib has. I > have a question for you, which might be a result of my ignorance or the > limitation of the current Matplotlib. I’m trying to make a bar chart > with hundreds of bars at different x positions with their own y values > (so called mass spectra) and would like to have different colors for > some of them, but the bar colors were never changed to what I intended. > Then, I realized because each bar is so narrow I can’t see the color of > the bars but only outside lines (I see the colors by zooming it), which > I couldn’t find a way to change the color. My question is, is there any > way either 1) to get rid of the outside lines or 2) to change the color > of the lines? Thanks much in advance! For (1), use the linewidth=0 kwarg, e.g.: barh(pos,val, align='center', linewidth=0) Eric > > > > Young Jin > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hey guys, =20 I'm a new guy in here and amazed by the capability Matplotlib has. I have a question for you, which might be a result of my ignorance or the limitation of the current Matplotlib. I'm trying to make a bar chart with hundreds of bars at different x positions with their own y values (so called mass spectra) and would like to have different colors for some of them, but the bar colors were never changed to what I intended. Then, I realized because each bar is so narrow I can't see the color of the bars but only outside lines (I see the colors by zooming it), which I couldn't find a way to change the color. My question is, is there any way either 1) to get rid of the outside lines or 2) to change the color of the lines? Thanks much in advance! =20 Young Jin =20
On 8/22/07, Tom Vaughan <to...@cr...> wrote: > Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and > on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I > am attempting to resolve an autoscale problem elsewhere, and I must of > screwed something up when I built matplotlib. But what? The only explanation that makes sense to me is that you are picking up different versions of mpl. Did you ever install from svn on any system? You can print >>> import matplotlib >>> print matplotlib.__version__ but that doesn't always help, because frequently different svn versions will print the same version number. We should adopt the numpy and scipy system of tagging the version w/ the svn revision number.... JDH
Hi, I have matplotlib 0.90.1 on YellowDog 3 PPC with Python 2.5 and all the support libraries built by hand, and matplotlib-0.90.1 on Ubuntu Feisty x86 via `aptitude install`. And let's say I have: import pylab pylab.plot([2.2, 2.3, 2.4], [0, 5, 1]) pylab.show() Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I am attempting to resolve an autoscale problem elsewhere, and I must of screwed something up when I built matplotlib. But what? Thanks. -Tom