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
(10) |
2
(6) |
3
(13) |
4
(3) |
5
(10) |
6
(4) |
7
(2) |
8
(15) |
9
(10) |
10
(44) |
11
(17) |
12
(9) |
13
(2) |
14
(2) |
15
(4) |
16
(8) |
17
(13) |
18
(11) |
19
(12) |
20
|
21
|
22
(10) |
23
(10) |
24
(11) |
25
(11) |
26
(9) |
27
(1) |
28
|
29
(15) |
30
(14) |
31
(7) |
|
|
|
On Mon, 2005年08月29日 at 17:39 +0200, Nicolas Girard wrote: > Hi all, > > I apologize for beeing slightly off-topic with this question, but I couldn't > think about a better place to ask :-/ > > Consider two vectors x1 and y1. Using matplotlib, plot(x1,y1) will display the > line joining all points whose coordinates are (x1(i),y1(i)) > Now, consider another couple of vectors x2 and y2. > Using plot(x1,y1,x2,y2) we are shown the 2 lines corresponding to (x1,y1) and > (x2,y2), and we can compare these two lines with the naked eye > > My question is, how to do this quantitatively ? Is there a way of calculating > the difference between the two sets of points, and then plot this difference, > using matplotlib ? I mean, if the data was generated using a fixed grid, it > would be enough to plot (y2-y1) but with an adaptative grid, x1 and x2 > differ. Do you know about a quick & dirty way to achieve this ? You have to interpolate the results to a common vector, and then perform the difference. If you want to reproduce exactly the difference you can see on-screen, then use a linear interpolation (cause the lines joining successive points are straight, hence a linear interpolation - well, assuming that your plot is in cartesian coordinates, else this becomes more tricky), and map both set of results to the common vector (list(x1)+list(x2)).sort() (remove duplicated values and reduce it to the interval max(min(x1),min(x2)), min(max(x1),max(x2)) if you want to be clean and safe...)
Hi, you can look in the direction of polyfit, polyval function to do what do you want. Regards, N Nicolas Girard wrote: >Hi all, > >I apologize for beeing slightly off-topic with this question, but I couldn't >think about a better place to ask :-/ > >Consider two vectors x1 and y1. Using matplotlib, plot(x1,y1) will display the >line joining all points whose coordinates are (x1(i),y1(i)) >Now, consider another couple of vectors x2 and y2. >Using plot(x1,y1,x2,y2) we are shown the 2 lines corresponding to (x1,y1) and >(x2,y2), and we can compare these two lines with the naked eye > >My question is, how to do this quantitatively ? Is there a way of calculating >the difference between the two sets of points, and then plot this difference, >using matplotlib ? I mean, if the data was generated using a fixed grid, it >would be enough to plot (y2-y1) but with an adaptative grid, x1 and x2 >differ. Do you know about a quick & dirty way to achieve this ? > >Thanks in advance, >cheers, >Nicolas >
On Monday 29 August 2005 11:03 am, si...@sc... wrote: > Hi all, > > I've a stubborn problem with labels near the origin of my pylab plots, > where the lowest tick label on the y-axis ends up touching the leftmost > tick label on the x-axis. Now, I can certainly tweak these manually with > xticks and yticks, but is there any automatic way to make this happen? More > generally, is there a way to specify "breathing room" distance between the > first/last tick mark and the beginning/end of the axis? Or to increase the > distance between label and tick mark? > > Apologies if these are FAQs: I've looked everywhere I can think of at the > moment, and am now officially stuck :-) Try increasing the tick.major.pad in your rc settings (and also tick.minor.pad if needed). Darren
Hi all, I apologize for beeing slightly off-topic with this question, but I couldn't think about a better place to ask :-/ Consider two vectors x1 and y1. Using matplotlib, plot(x1,y1) will display the line joining all points whose coordinates are (x1(i),y1(i)) Now, consider another couple of vectors x2 and y2. Using plot(x1,y1,x2,y2) we are shown the 2 lines corresponding to (x1,y1) and (x2,y2), and we can compare these two lines with the naked eye My question is, how to do this quantitatively ? Is there a way of calculating the difference between the two sets of points, and then plot this difference, using matplotlib ? I mean, if the data was generated using a fixed grid, it would be enough to plot (y2-y1) but with an adaptative grid, x1 and x2 differ. Do you know about a quick & dirty way to achieve this ? Thanks in advance, cheers, Nicolas
Hi all, I've a stubborn problem with labels near the origin of my pylab plots, where the lowest tick label on the y-axis ends up touching the leftmost tick label on the x-axis. Now, I can certainly tweak these manually with xticks and yticks, but is there any automatic way to make this happen? More generally, is there a way to specify "breathing room" distance between the first/last tick mark and the beginning/end of the axis? Or to increase the distance between label and tick mark? Apologies if these are FAQs: I've looked everywhere I can think of at the moment, and am now officially stuck :-) Cheers, Mike Sipior
Hi Benjamin, Sorry but your code is still dependent on twisted: Traceback (most recent call last): File "client.py", line 2, in ? from modules import mainwindow File "C:\Dev\BoaTest04\Benjamin\mat_test\modules\mainwindow.py", line=20 2, in ? from twisted.internet import wxreactor ImportError: No module named twisted.internet I don't have the time/nor interest (at least not at the moment) to get=20 twisted installed on my machine. You should try to isolate your problem and part of that is probably to=20 get your matplotlib stuff NOT be dependent on a twisted feed, get the=20 data from a file or even just hard code it. Tsch=FCss und vieli gr=FCss us em S=FCd Frankreich Werner Benjamin Schindler wrote: >Oh- I forgot > >You don't need to execute the server - just launch client.py (I haven't >stripped everything off)=20 > >-----Urspr=FCngliche Nachricht----- >Von: mat...@li... >[mailto:mat...@li...] Im Auftrag von Wer= ner >F. Bruhin >Gesendet: Montag, 29. August 2005 14:25 >An: mat...@li... >Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend > >Hi, > >Could you provide a sample showing the problem which is not depended on=20 > twisted? > >See you >Werner > >Benjamin Schindler wrote: > =20 > >>I have been able to trace down my problem a little - but it's not solve= d >>yet. >>I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to >>self.axes. The first time I'm adding a line, I just see the 0,1 line. T= he >>second time, I see the lines I want to see. However, the grid doesn't >> =20 >> >scale > =20 > >>(so the lines keep updating in an area that's not visible anymore. >>Any ideas? >> >>-----Urspr=FCngliche Nachricht----- >>Von: mat...@li... >>[mailto:mat...@li...] Im Auftrag von >>Benjamin Schindler >>Gesendet: Freitag, 26. August 2005 09:04 >>An: 'Ken McIvor' >>Cc: mat...@li... >>Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend >> >>I was simply trying out the hint you gave me. I didn't expect it to sol= ve >> =20 >> >my > =20 > >>problem, but I tried anyway.=20 >>I found it to be the easiest thing I can do just to send it my code. It= 's >>not _that_ complex, though you need twisted installed (I don't know >> =20 >> >whether > =20 > >>it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython 2.= 6 >>(I'm using features only present in 2.6) >>My Attachement is a zip-file. I figured that the outgoing mailserver >> =20 >> >blocks > =20 > >>mail witz zip attachements :-/. First start server.py (in root-dir) - i= t >>will generate the data, then start the client. In the sidebar (once the >>client connected to the server) you can select/deselect sources. My ide= a >> =20 >> >is, > =20 > >>that data collection just goes on, and If I select a source, It display= s >> =20 >> >me > =20 > >>all the data currently collected. >>The code that has to do with the matplotlib stuff is located in >>plugins/wx/monitor.py. Receive(self, data, source) is the retreival >> =20 >> >function > =20 > >>and EnableSource is supposed to enable drawing of a particular >> =20 >> >data-source. > =20 > >>Sorry for not doing a very simple testcase - but I think the code in >>monitor.py is simple enough =20 >> >>-----Urspr=FCngliche Nachricht----- >>Von: Ken McIvor [mailto:km...@gm...]=20 >>Gesendet: Donnerstag, 25. August 2005 17:12 >>An: Schindler Benjamin >>Cc: mat...@li... >>Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend >> >>On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: >> >> =20 >> >>>Since I have to leave from here I cannot yet produce a sample app that= =20 >>>would show this behaviour. >>> =20 >>> >>It doesn't have to be anything complex, just the bare functionality of=20 >>whatever you're working on. I'll be happy to take a look at it=20 >>tomorrow. >> >> >> =20 >> >>>However, I tried to have a non-empty list at the beginning. I replaced= =20 >>>Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying -=20 >>>with no luck apparently. >>> =20 >>> >>I'm sorry if I gave you the impression that that was the problem...=20 >>it's a potential problem, but I didn't mean to suggest that it's why=20 >>your plot isn't being draw. >> >>Ken >> >> >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> =20 >> >Practices > =20 > >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf >> =20 >> > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practi= ces >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5s= f >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > =20 >
Oh- I forgot You don't need to execute the server - just launch client.py (I haven't stripped everything off)=20 -----Urspr=FCngliche Nachricht----- Von: mat...@li... [mailto:mat...@li...] Im Auftrag von = Werner F. Bruhin Gesendet: Montag, 29. August 2005 14:25 An: mat...@li... Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend Hi, Could you provide a sample showing the problem which is not depended on=20 twisted? See you Werner Benjamin Schindler wrote: > I have been able to trace down my problem a little - but it's not = solved > yet. > I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to > self.axes. The first time I'm adding a line, I just see the 0,1 line. = The > second time, I see the lines I want to see. However, the grid doesn't scale > (so the lines keep updating in an area that's not visible anymore. > Any ideas? >=20 > -----Urspr=FCngliche Nachricht----- > Von: mat...@li... > [mailto:mat...@li...] Im Auftrag von > Benjamin Schindler > Gesendet: Freitag, 26. August 2005 09:04 > An: 'Ken McIvor' > Cc: mat...@li... > Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend >=20 > I was simply trying out the hint you gave me. I didn't expect it to = solve my > problem, but I tried anyway.=20 > I found it to be the easiest thing I can do just to send it my code. = It's > not _that_ complex, though you need twisted installed (I don't know whether > it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython = 2.6 > (I'm using features only present in 2.6) > My Attachement is a zip-file. I figured that the outgoing mailserver blocks > mail witz zip attachements :-/. First start server.py (in root-dir) - = it > will generate the data, then start the client. In the sidebar (once = the > client connected to the server) you can select/deselect sources. My = idea is, > that data collection just goes on, and If I select a source, It = displays me > all the data currently collected. > The code that has to do with the matplotlib stuff is located in > plugins/wx/monitor.py. Receive(self, data, source) is the retreival function > and EnableSource is supposed to enable drawing of a particular data-source. >=20 > Sorry for not doing a very simple testcase - but I think the code in > monitor.py is simple enough =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Ken McIvor [mailto:km...@gm...]=20 > Gesendet: Donnerstag, 25. August 2005 17:12 > An: Schindler Benjamin > Cc: mat...@li... > Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend >=20 > On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: >=20 >>Since I have to leave from here I cannot yet produce a sample app that = >>would show this behaviour. >=20 >=20 > It doesn't have to be anything complex, just the bare functionality of = > whatever you're working on. I'll be happy to take a look at it=20 > tomorrow. >=20 >=20 >>However, I tried to have a non-empty list at the beginning. I replaced = >>Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying -=20 >>with no luck apparently. >=20 >=20 > I'm sorry if I gave you the impression that that was the problem...=20 > it's a potential problem, but I didn't mean to suggest that it's why=20 > your plot isn't being draw. >=20 > Ken >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing = & QA > Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi Sortof, but not really. I've just discovered something reeeally = interesting. I've produced a sample app that exhibits this behaviour. However, = monitor.py (in plugins/wx) still depends on twisted.spread.pb. If I comment out = that import, it all runs fine. (you can add data with the a button and the = slider in the left pane) It's hard for me guess who is causing the troubles - whether it's = matplotlib not beeing able to handle the twisted threading or twisted breaking matplotlib - I don't know -----Urspr=FCngliche Nachricht----- Von: mat...@li... [mailto:mat...@li...] Im Auftrag von = Werner F. Bruhin Gesendet: Montag, 29. August 2005 14:25 An: mat...@li... Betreff: [Matplotlib-users] Re: AW: AW: Line2D and wx Backend Hi, Could you provide a sample showing the problem which is not depended on=20 twisted? See you Werner Benjamin Schindler wrote: > I have been able to trace down my problem a little - but it's not = solved > yet. > I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to > self.axes. The first time I'm adding a line, I just see the 0,1 line. = The > second time, I see the lines I want to see. However, the grid doesn't scale > (so the lines keep updating in an area that's not visible anymore. > Any ideas? >=20 > -----Urspr=FCngliche Nachricht----- > Von: mat...@li... > [mailto:mat...@li...] Im Auftrag von > Benjamin Schindler > Gesendet: Freitag, 26. August 2005 09:04 > An: 'Ken McIvor' > Cc: mat...@li... > Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend >=20 > I was simply trying out the hint you gave me. I didn't expect it to = solve my > problem, but I tried anyway.=20 > I found it to be the easiest thing I can do just to send it my code. = It's > not _that_ complex, though you need twisted installed (I don't know whether > it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython = 2.6 > (I'm using features only present in 2.6) > My Attachement is a zip-file. I figured that the outgoing mailserver blocks > mail witz zip attachements :-/. First start server.py (in root-dir) - = it > will generate the data, then start the client. In the sidebar (once = the > client connected to the server) you can select/deselect sources. My = idea is, > that data collection just goes on, and If I select a source, It = displays me > all the data currently collected. > The code that has to do with the matplotlib stuff is located in > plugins/wx/monitor.py. Receive(self, data, source) is the retreival function > and EnableSource is supposed to enable drawing of a particular data-source. >=20 > Sorry for not doing a very simple testcase - but I think the code in > monitor.py is simple enough =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Ken McIvor [mailto:km...@gm...]=20 > Gesendet: Donnerstag, 25. August 2005 17:12 > An: Schindler Benjamin > Cc: mat...@li... > Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend >=20 > On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: >=20 >>Since I have to leave from here I cannot yet produce a sample app that = >>would show this behaviour. >=20 >=20 > It doesn't have to be anything complex, just the bare functionality of = > whatever you're working on. I'll be happy to take a look at it=20 > tomorrow. >=20 >=20 >>However, I tried to have a non-empty list at the beginning. I replaced = >>Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying -=20 >>with no luck apparently. >=20 >=20 > I'm sorry if I gave you the impression that that was the problem...=20 > it's a potential problem, but I didn't mean to suggest that it's why=20 > your plot isn't being draw. >=20 > Ken >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing = & QA > Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi, Could you provide a sample showing the problem which is not depended on twisted? See you Werner Benjamin Schindler wrote: > I have been able to trace down my problem a little - but it's not solved > yet. > I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to > self.axes. The first time I'm adding a line, I just see the 0,1 line. The > second time, I see the lines I want to see. However, the grid doesn't scale > (so the lines keep updating in an area that's not visible anymore. > Any ideas? > > -----Ursprüngliche Nachricht----- > Von: mat...@li... > [mailto:mat...@li...] Im Auftrag von > Benjamin Schindler > Gesendet: Freitag, 26. August 2005 09:04 > An: 'Ken McIvor' > Cc: mat...@li... > Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend > > I was simply trying out the hint you gave me. I didn't expect it to solve my > problem, but I tried anyway. > I found it to be the easiest thing I can do just to send it my code. It's > not _that_ complex, though you need twisted installed (I don't know whether > it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython 2.6 > (I'm using features only present in 2.6) > My Attachement is a zip-file. I figured that the outgoing mailserver blocks > mail witz zip attachements :-/. First start server.py (in root-dir) - it > will generate the data, then start the client. In the sidebar (once the > client connected to the server) you can select/deselect sources. My idea is, > that data collection just goes on, and If I select a source, It displays me > all the data currently collected. > The code that has to do with the matplotlib stuff is located in > plugins/wx/monitor.py. Receive(self, data, source) is the retreival function > and EnableSource is supposed to enable drawing of a particular data-source. > > Sorry for not doing a very simple testcase - but I think the code in > monitor.py is simple enough > > -----Ursprüngliche Nachricht----- > Von: Ken McIvor [mailto:km...@gm...] > Gesendet: Donnerstag, 25. August 2005 17:12 > An: Schindler Benjamin > Cc: mat...@li... > Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend > > On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: > >>Since I have to leave from here I cannot yet produce a sample app that >>would show this behaviour. > > > It doesn't have to be anything complex, just the bare functionality of > whatever you're working on. I'll be happy to take a look at it > tomorrow. > > >>However, I tried to have a non-empty list at the beginning. I replaced >>Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying - >>with no luck apparently. > > > I'm sorry if I gave you the impression that that was the problem... > it's a potential problem, but I didn't mean to suggest that it's why > your plot isn't being draw. > > Ken > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
I have been able to trace down my problem a little - but it's not solved yet. I've added a self.axes.plot([0,1],[0,1]) when I'm adding a line to self.axes. The first time I'm adding a line, I just see the 0,1 line. = The second time, I see the lines I want to see. However, the grid doesn't = scale (so the lines keep updating in an area that's not visible anymore. Any ideas? -----Urspr=FCngliche Nachricht----- Von: mat...@li... [mailto:mat...@li...] Im Auftrag von Benjamin Schindler Gesendet: Freitag, 26. August 2005 09:04 An: 'Ken McIvor' Cc: mat...@li... Betreff: AW: AW: [Matplotlib-users] Line2D and wx Backend I was simply trying out the hint you gave me. I didn't expect it to = solve my problem, but I tried anyway.=20 I found it to be the easiest thing I can do just to send it my code. = It's not _that_ complex, though you need twisted installed (I don't know = whether it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython 2.6 (I'm using features only present in 2.6) My Attachement is a zip-file. I figured that the outgoing mailserver = blocks mail witz zip attachements :-/. First start server.py (in root-dir) - it will generate the data, then start the client. In the sidebar (once the client connected to the server) you can select/deselect sources. My idea = is, that data collection just goes on, and If I select a source, It displays = me all the data currently collected. The code that has to do with the matplotlib stuff is located in plugins/wx/monitor.py. Receive(self, data, source) is the retreival = function and EnableSource is supposed to enable drawing of a particular = data-source. Sorry for not doing a very simple testcase - but I think the code in monitor.py is simple enough =20 -----Urspr=FCngliche Nachricht----- Von: Ken McIvor [mailto:km...@gm...]=20 Gesendet: Donnerstag, 25. August 2005 17:12 An: Schindler Benjamin Cc: mat...@li... Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: > Since I have to leave from here I cannot yet produce a sample app that = > would show this behaviour. It doesn't have to be anything complex, just the bare functionality of=20 whatever you're working on. I'll be happy to take a look at it=20 tomorrow. > However, I tried to have a non-empty list at the beginning. I replaced = > Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying -=20 > with no luck apparently. I'm sorry if I gave you the impression that that was the problem...=20 it's a potential problem, but I didn't mean to suggest that it's why=20 your plot isn't being draw. Ken
hello it seems that the two examples date_demo1 et date_demo2 do not work if LC_TIME is not C. At least, they don't work with fr_FR.UTF-8 nor with fr_FR. Is this a known problem? is it a python or a matplotlib problem? -- Pierre
===== Original message from Jeff Whitaker | 2005年8月25日: > I've created matplotlib colormaps from all the color tables at > http://colorbrewer.org, and > http://geography.uoregon.edu/datagraphics/color_scales.htm thanks for providing this, i hope this will be included in the matplotlib distribution, along with your script for previewing and listing all colormaps? (see modification of original code below.) i would like to mention another archive of color gradients, http://cpt-city.org.uk/. two examples of color gradients found here that i think might be useful for plotting data: Nonlinear grays, e.g. gamma={1/3, 0.5, 0.8, 1.25, ..} (human vision are more sensitive in the lighter range) http://cpt-city.org.uk/tl/ Subtle close-to-grayscale gradients, like for instance the sephia and cyanotype tinted monochrome colormaps found here: http://cpt-city.org.uk/erj/multiple/ """ Usage: colormap-preview.py [cmapname] Adapted from original code by Jeff Whitaker http://sourceforge.net/mailarchive/message.php?msg_id=12764609 """ import matplotlib.cm as cm import pylab as p def plot_colorbar(cmapname,nsteps=None): colormap = cm.__dict__[cmapname] fig=p.figure(figsize=(8,1)) ax = fig.add_axes([0.05,0.05,0.9,0.70]) if nsteps == None: nsteps = colormap.N+1 clevs = p.linspace(0,1,nsteps+1) C = p.array([clevs,clevs]) X,Y = p.meshgrid(clevs,[0,1]) levs,coll = ax.contourf(C, Y, X, nsteps-1, cmap=colormap) ax.set_xticks([]) ax.set_yticks([]) p.title(cmapname) p.show() if __name__ == "__main__": names = cm.datad.keys() import sys if len(sys.argv) > 1: cmapname = sys.argv[1] else: print len(names), 'total color maps' print sorted(names) cmapname = raw_input('color map name: ') if cmapname not in names: raise KeyError, 'invalid colormap name,' +\ ' valid names are '+repr(names) plot_colorbar(cmapname) ## end of Python code -- Vidar Bronken Gundersen blogged: http://www.37mm.no/blog/ColorBrewer_schemes_for_Matplotlib.html
On 2005年8月26日, Rich Shepard wrote: > On 2005年8月26日, Arnd Baecker wrote: > > > I thought it might be of interest to some that a debian-science mailing > > list has been created. Quoting debian-weekly: > > It's unfortunate that the effort is distribution-specific. After all the > work to remove such differences from various distributions it's counter > productive to try to re-instate divisions. Have you actually read the part you snipped away in your reply? > Perhaps others of us should > promote a Slackware-science group. Or, a Gentoo-science group. Just go ahead for slackware. For Gentoo see: http://www.gentoo.org/proj/en/desktop/science/index.xml > Silly. > > Rich Must be Friday, best, Arnd
On 2005年8月26日, Arnd Baecker wrote: > I thought it might be of interest to some that a debian-science mailing > list has been created. Quoting debian-weekly: It's unfortunate that the effort is distribution-specific. After all the work to remove such differences from various distributions it's counter productive to try to re-instate divisions. Perhaps others of us should promote a Slackware-science group. Or, a Gentoo-science group. Silly. Rich -- Dr. Richard B. Shepard, President | Author of "Quantifying Environmental Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic" <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Hi all, I'm having trouble displaying an image using the imshow() command in an e= mbedded TkinterCanvasAgg. I used mostly the examples embedding_in_tk2.py and embedding_in_tk.py I use two code parts : in my __init__ for the gui def I have : self.mplfImageDisplay =3D mpl.figure.Figure(figsize=3D(5,4), dpi=3D100= ) #add tk.DrawingArea self.cvImageDisplay =3D FigureCanvasTkAgg(self.mplfImageDisplay,master=3DrightPaneImageDisplay) #self.canvas.show() self.cvImageDisplay.get_tk_widget().pack() #add toolbar toolbar =3D NavigationToolbar2TkAgg(self.cvImageDisplay,rightPaneImage= Display) toolbar.update() self.cvImageDisplay._tkcanvas.pack() then in one of my functions, if I use : a =3D self.mplfImageDisplay.add_subplot(111) a.contourf(x,y,self.scanformatdata,100) #cmap=3Dmpl.cm.gray) self.cvImageDisplay.show() This works fine, but now, I would like to display an image : a =3D mpl.image.FigureImage(na.asarray(self.scanformatdata)) self.cvImageDisplay.show() This works but I can rescale the image not zoom in using the toolbar, so = I tried instead : a =3D mpl.axes.Axes(self.mplfImageDisplay,[0.1,1,0.1,1]) a.imshow(na.asarray(self.scanformatdata),interpolation=3D'nearest') self.cvImageDisplay.show() This does something but I don't know what since nothing is displayed... Anyone has a clue ? Also, more generally speaking, I found quite extensiv= e documentation using the Pylab interface, but as soon as one moves away fr= om this (as when you need to if trying to embed in whatever backend, if i understand well), then there doesn't exist much (?)... is there any sourc= e I would have missed ? All the best, Aure
Hi, I thought it might be of interest to some that a debian-science mailing list has been created. Quoting debian-weekly: Debian Science Group. Helen Faulkner [14]announced the creation of the [15]debian-science mailing list. It is aimed to encourage discussions about how best to [16]use Debian as an operating system for scientific research and how to improve Debian by making it more useful to scientists and people working in related fields. It should also provide an address for scientists where they can ask questions about Debian or software in Debian and get useful answers. 14. http://lists.debian.org/debian-devel/2005/07/msg01555.html 15. http://lists.debian.org/debian-science/ 16. http://wiki.debian.net/?DebianScience Best, Arnd
On 8/26/05, Jeff Whitaker <js...@fa...> wrote: > "def get_cmap" line (although this will not make them available via > pylab calls like 'jet()' and 'hot()'). To get a quick view of what the this is great, and I think the matlab way with a function for each color map pollutes the namespace too much. I humbly suggest a syntax like colormap('hot') or to give bluetones for values < 0, greenish and brown above: colormap('earth', zerolevel=3D0.0) etc. for pylab Helge
I was simply trying out the hint you gave me. I didn't expect it to = solve my problem, but I tried anyway.=20 I found it to be the easiest thing I can do just to send it my code. = It's not _that_ complex, though you need twisted installed (I don't know = whether it'll work with 1.3 - I'm working with 2.0) and you'll need wxpython 2.6 (I'm using features only present in 2.6) My Attachement is a zip-file. I figured that the outgoing mailserver = blocks mail witz zip attachements :-/. First start server.py (in root-dir) - it will generate the data, then start the client. In the sidebar (once the client connected to the server) you can select/deselect sources. My idea = is, that data collection just goes on, and If I select a source, It displays = me all the data currently collected. The code that has to do with the matplotlib stuff is located in plugins/wx/monitor.py. Receive(self, data, source) is the retreival = function and EnableSource is supposed to enable drawing of a particular = data-source. Sorry for not doing a very simple testcase - but I think the code in monitor.py is simple enough =20 -----Urspr=FCngliche Nachricht----- Von: Ken McIvor [mailto:km...@gm...]=20 Gesendet: Donnerstag, 25. August 2005 17:12 An: Schindler Benjamin Cc: mat...@li... Betreff: Re: AW: [Matplotlib-users] Line2D and wx Backend On Aug 25, 2005, at 10:02 AM, Schindler Benjamin wrote: > Since I have to leave from here I cannot yet produce a sample app that = > would show this behaviour. It doesn't have to be anything complex, just the bare functionality of=20 whatever you're working on. I'll be happy to take a look at it=20 tomorrow. > However, I tried to have a non-empty list at the beginning. I replaced = > Line2D([],[]) with Line2D([1,2],[1,2]) just for the sake of trying -=20 > with no luck apparently. I'm sorry if I gave you the impression that that was the problem...=20 it's a potential problem, but I didn't mean to suggest that it's why=20 your plot isn't being draw. Ken
Yes - this code works at home and at work (Linux/windows). I fail to see = why mine won't. I checked the id's - they're correct -----Urspr=FCngliche Nachricht----- Von: John Hunter [mailto:jdh...@ac...]=20 Gesendet: Donnerstag, 25. August 2005 18:01 An: Schindler Benjamin Cc: mat...@li... Betreff: Re: [Matplotlib-users] Line2D and wx Backend >>>>> "Schindler" =3D=3D Schindler Benjamin <bsc...@st...> = writes: Schindler> Hi - I'm having problems - I don't get any line Schindler> displayed on my screen. My code looks as follows Schindler> (Init): Make sure you are working with the line you think you are Rather than doing this self.axes.add_line(Line2D([],[]) do this self.line =3D Line2D([],[] self.axes.add_line(self.line) After you do this line =3D self.data[source][0] # Retreive the line check to make sure that id(line) and id(self.line) are the same. Here is a simple example that binds events to adding line data. Perhaps you can follow this (in wx you need to click on the figure once before the keypress events will be processed) from matplotlib.lines import Line2D import matplotlib.numerix as nx from pylab import figure, show xdata =3D [] ydata =3D [] line =3D Line2D(xdata, ydata) def add_data(event): if event.key!=3D'a': return xdata.extend(nx.mlab.rand(10)) ydata.extend(nx.mlab.rand(10)) line.set_data(xdata, ydata) fig.canvas.draw() =20 fig =3D figure() ax =3D fig.add_subplot(111) ax.add_line(line) ax.set_title("Press 'a' to add more data") fig.canvas.mpl_connect('key_press_event', add_data) show()
On 2005年8月25日, Menno Straatsma apparently wrote: > How can I make make multiple plots within one script using > the newest python version? The short answer is: give the fig() command before starting to create each plot, and give only one show() command at the end. However all plots will be displayed when you give the show command. Like you, I used to use multiple show() commands in order to get sequential (one at a time) display. I found this useful in the classroom. I do not know how to do that in pylab now. Cheers, Alan Isaac
I've created matplotlib colormaps from all the color tables at http://colorbrewer.org, and http://geography.uoregon.edu/datagraphics/color_scales.htm. You can grab them at http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/python/extracmaps.py.gz. Also included are the Generic Mapping Tools colormaps (at least the ones that are different from the built in mpl colormaps), for a total of 60. You can just paste the contents of that file into cm.py just above the "def get_cmap" line (although this will not make them available via pylab calls like 'jet()' and 'hot()'). To get a quick view of what the colormaps look like, I use this little script: import matplotlib.cm as cm import pylab as p names = cm.datad.keys() print len(names),'total color maps' def plot_colorbar(cmapname,nsteps=None): colormap = cm.__dict__[cmapname] fig=p.figure(figsize=(8,1)) ax = fig.add_axes([0.05,0.05,0.9,0.70]) if nsteps == None: nsteps = colormap.N+1 clevs = p.linspace(0,1,nsteps+1) C = p.array([clevs,clevs]) X,Y = p.meshgrid(clevs,[0,1]) levs,coll = ax.contourf(C, Y, X, nsteps-1, cmap=colormap) ax.set_xticks([]) ax.set_yticks([]) p.title(cmapname) p.show() if __name__ == "__main__": cmapname = raw_input('color map name:') if cmapname not in names: raise KeyError, 'invalid colormap name, valid names are '+repr(names) plot_colorbar(cmapname) Enjoy! -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
> And the answer, for the archives.... ? Sorry, I should have included this in my last email. It's quite easy: from MA import set_print_limit set_print_limit(NEW_LIMIT_HERE) Regards, Sascha
Don't I feel silly. --verbose-helpful is quite helpful. I was loading an rc file I didn't know I had saved in the directory where another test script was saved. I deleted that other rc file with the bad backend string and everything is fine. Ryan John Hunter wrote: >>>>>>"Ryan" == Ryan Krauss <rya...@co...> writes: > > > Ryan> I have an interesting problem importing pylab. Most of my > Ryan> work is stored on a FAT32 partition so I can access it from > Ryan> windows or linux. If I run python from a dos command open > Ryan> on that partition I get: > > Ryan> E:\pythonscripts>python Enthought Edition build 1069 Python > Ryan> 2.3.5 (#62, Mar 22 2005, 21:53:13) [MSC v.1200 32 bit > Ryan> (Intel)] on win32 Type "help", "copyright", "credits" or > Ryan> "license" for more information. > >>>> import pylab > Ryan> Traceback (most recent call last): File "<stdin>", line 1, > Ryan> in ? File "C:\Python23\Lib\site-packages\pylab.py", line 1, > Ryan> in ? from matplotlib.pylab import * File > Ryan> "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line > Ryan> 199, in ? import backends File > Ryan> "C:\Python23\Lib\site-packages\matplotlib\backends\__init__.py", > Ryan> line 15, in ? raise ValueError, 'Unrecognized backend %s' % > Ryan> backend ValueError: Unrecognized backend WxAgg > > My guess is that this has nothing to do with partitions and that you > may be reading two different rc files. One has > > backend : WxAgg > > which is erroneous (should be WXAgg) > > and the other has the win32 default > > backend : TkAgg > > which is working for you. > > To test, create a script test.py > > import pylab > > and run it on both partitions with > > python test.py --verbose-helpful > > This will tell you which rc file is being loaded, what backend is > chosen, etc. > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
>>>>> "Schindler" == Schindler Benjamin <bsc...@st...> writes: Schindler> Hi - I'm having problems - I don't get any line Schindler> displayed on my screen. My code looks as follows Schindler> (Init): Make sure you are working with the line you think you are Rather than doing this self.axes.add_line(Line2D([],[]) do this self.line = Line2D([],[] self.axes.add_line(self.line) After you do this line = self.data[source][0] # Retreive the line check to make sure that id(line) and id(self.line) are the same. Here is a simple example that binds events to adding line data. Perhaps you can follow this (in wx you need to click on the figure once before the keypress events will be processed) from matplotlib.lines import Line2D import matplotlib.numerix as nx from pylab import figure, show xdata = [] ydata = [] line = Line2D(xdata, ydata) def add_data(event): if event.key!='a': return xdata.extend(nx.mlab.rand(10)) ydata.extend(nx.mlab.rand(10)) line.set_data(xdata, ydata) fig.canvas.draw() fig = figure() ax = fig.add_subplot(111) ax.add_line(line) ax.set_title("Press 'a' to add more data") fig.canvas.mpl_connect('key_press_event', add_data) show()
>>>>> "Ryan" == Ryan Krauss <rya...@co...> writes: Ryan> I have an interesting problem importing pylab. Most of my Ryan> work is stored on a FAT32 partition so I can access it from Ryan> windows or linux. If I run python from a dos command open Ryan> on that partition I get: Ryan> E:\pythonscripts>python Enthought Edition build 1069 Python Ryan> 2.3.5 (#62, Mar 22 2005, 21:53:13) [MSC v.1200 32 bit Ryan> (Intel)] on win32 Type "help", "copyright", "credits" or Ryan> "license" for more information. >>>> import pylab Ryan> Traceback (most recent call last): File "<stdin>", line 1, Ryan> in ? File "C:\Python23\Lib\site-packages\pylab.py", line 1, Ryan> in ? from matplotlib.pylab import * File Ryan> "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line Ryan> 199, in ? import backends File Ryan> "C:\Python23\Lib\site-packages\matplotlib\backends\__init__.py", Ryan> line 15, in ? raise ValueError, 'Unrecognized backend %s' % Ryan> backend ValueError: Unrecognized backend WxAgg My guess is that this has nothing to do with partitions and that you may be reading two different rc files. One has backend : WxAgg which is erroneous (should be WXAgg) and the other has the win32 default backend : TkAgg which is working for you. To test, create a script test.py import pylab and run it on both partitions with python test.py --verbose-helpful This will tell you which rc file is being loaded, what backend is chosen, etc.