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
(8) |
2
(4) |
3
(21) |
4
(23) |
5
(3) |
6
|
7
(8) |
8
(2) |
9
|
10
(6) |
11
(4) |
12
(6) |
13
(1) |
14
(9) |
15
(10) |
16
(11) |
17
(3) |
18
(10) |
19
(9) |
20
(2) |
21
(10) |
22
(16) |
23
(8) |
24
(6) |
25
(6) |
26
(3) |
27
(5) |
28
(1) |
29
(14) |
30
(5) |
31
(14) |
|
|
From: Christopher B. <Chr...@no...> - 2006-08-18 19:27:51
|
Stefan van der Walt wrote: > I don't think mailing lists should change the reply-to: > > http://www.unicom.com/pw/reply-to-harmful.html The principles in that article are sound, but the conclusions simply don't match my experience. I'm on a half a dozen or so lists. Some re-set the reply-to header, and some don't. I am very familiar with "reply" vs. "reply all" -- I use them selectively every day, for all my email. I very frequently do NOT do what I intended with this list and others that don't set the reply-to header. I NEVER make a mistake or have a hard time with the lists that do. That's just me, but I'll address a couple points in that article: """ It Adds Nothing: "...another that replies to the author plus all of the list recipients..." """ Here's what the author is missing: "Reply All" replies to all, not just the group. That means I have just sent a message to the list and to the original author -- that author gets two copies of my message, which is only a minor annoyance. However, when someone responds to my response, now two people are on the "all" list. Then another response, and pretty soon I'm getting 5 copies of the same message -- now it's gone beyond just annoying. Add cross-posing, and it really gets ugly. NOTE: With this particular note, reply-all only replied to the list -- what's different about how you send your mail? """ Principle of Least Surprise """ When I get a message from a list, I think of it being from the list, not from any particular author, so I am surprised when my reply goes only to that author. I have been bit by this many, many times. """ Principle of Least Damage Consider the damage when things go awry. If you do not munge the Reply-To header and a list subscriber accidentally sends a response via private email instead of to the list, he or she has to follow up with a message that says, "Ooops! I meant to send that to the list. Could you please forward a copy for me." That's a hassle, and it happens from time to time. """ It happens a LOT, and it's not always obvious. The purpose of lists is to foster group communication and public archiving -- it should be optimized for that, not for private communication. """ What happens, however, when a person mistakenly broadcasts a private message to the entire list? I """ I very, very, rarely send truly private responses to list messages. It's not rare for me to send messages that are of little interest to the list, and I do send those privately, but there is no harm done if these get broadcast unintentionally. """ Guess what feature more and more people are asking for? A third reply command -- one that ignores any existing Reply-To header! """ Actually, what I would want, for lists that don't munge the reply-to, is a third option: one that sends the message only to the list, and not to "all" -- I think that's the same thing, actually, reply to only the sender, not the reply-to. """ One day I accidentally sent a private, personal reply out over one of my own damn lists. """ I don't know how many times I've seen "reply-all" accidentally used for a message that should have been just "reply". People do this at work every day, and while most of them are harmless annoyances, occasionally someone does send a truly personal message out that way -- oops! My personal solution is to get in the habit of using only "reply". That way I have to think about it when I want to send something out to everyone, not when I don't want to. If I was using "reply-all" with my list traffic, I'd be getting into a bad habit. This all comes down to the key paradox of usability -- "intuitive" means that something works like one expects -- but different people expect different things, I clearly expect different things than the author of that article. However, here's my attempt to use logical reasoning: Munging the reply-to header on a list makes it easier for what most people need to do most of the time: reply to the list, and only the list. The ONLY significant consequence to munging the header is that someone MIGHT be more likely to accidentally sent out a truly personal note to the list. However, I argue that: 1) anyone should be very, very careful every time they send a truly personal email anyway -- email is a pretty risky medium for such messages. 2) Getting in the habit of hitting reply-all will make it just as likely to make the mistake of sending a personal note to the list, and more likely that you'll make that mistake with other, non-list email. Wow, that turned out to be a long way to say: +1 on re-setting the reply-to headers. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: Brendan B. <bre...@br...> - 2006-08-18 16:39:43
|
Stefan van der Walt wrote: > On Thu, Aug 17, 2006 at 09:48:58PM -0700, Brendan Barnwell wrote: >> [I accidentally sent this message privately to the sender before. . . why >> doesn't this list set the Reply-To header to the list?] > > I don't think mailing lists should change the reply-to: > > http://www.unicom.com/pw/reply-to-harmful.html As per the instructions on that page, I am sending this reply by using my client's "reply to all" feature. If you receive two copies of this email (one from me and one from the list) then I suspect you will understand the disadvantage of this mechanism. -- --Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown |
From: Darren D. <dd...@co...> - 2006-08-18 12:27:25
|
On Wednesday 16 August 2006 04:54, Samuel GARCIA wrote: > Thank you, > Sorry I did known the existence of matplotlib.backends.backend_qt4agg. > It is more easy than I thought. > > but I still have a problem. This is my code : > > import sys > > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as > FigureCanvas > from matplotlib.figure import Figure > > #-------------------------------------------------------------------------- >---- class MyWidget(QWidget): > def __init__(self, parent=None): > QWidget.__init__(self, parent) > self.menuBar = QMenuBar() > self.fileMenu = QMenu(self.tr("&File"), self) > self.menuBar.addMenu(self.fileMenu) > > mainLayout = QVBoxLayout() > mainLayout.setMenuBar(self.menuBar) > > self.setLayout(mainLayout) > > #-------------------------------------------------------------------------- >---- if __name__ == "__main__": > app = QApplication(sys.argv) > dialog = MyWidget() > dialog.show() > sys.exit(app.exec_()) > > and it does not works because the main window is blocking. I'll try to have a look this weekend. Darren |
From: Pieter D. <pie...@gm...> - 2006-08-18 12:26:31
|
Hi, I'm trying to generate a contour plot with logarithmic axes. I'm generating data on a grid defined by logspaces: x_range = logspace(log10(xstart),log10(xend),num=25) y_range = logspace(log10(ystart),log10(yend),num=25) Then, to generate the plot I do the following: [X,Y]=pylab.meshgrid(log10(x_range),log10(y_range)) pylab.contourf(X,Y,transpose(data)) And to obtain nicer tick mark labels, this dirty way: xmajorForm = pylab.FormatStrFormatter('10e%.1f') ax.xaxis.set_major_formatter(xmajorForm) ymajorForm = pylab.FormatStrFormatter('10e%.1f') ax.yaxis.set_major_formatter(ymajorForm) Are there better ways to (1) set the x and y xis scaling to logarithmic, and to (2) obtain nicely formatted tick mark labels ? I tried playing around with the x and y axis data and with LogLocator and LogFormatter but it doesn't seem to do the job. Pieter |
From: Charlie M. <cw...@gm...> - 2006-08-18 12:21:06
|
UGxlYXNlIGZvbGxvdyB0aGUgc2VnZmF1bHQgaW5zdHJ1Y3Rpb25zIGFuZCBnZXQgYmFjayB0byB1 cy4KCmh0dHA6Ly9zdm4uc291cmNlZm9yZ2UubmV0L3ZpZXd2Yy9tYXRwbG90bGliL3RydW5rL21h dHBsb3RsaWIvU0VHRkFVTFRTP3JldmlzaW9uPTIzMTImdmlldz1tYXJrdXAKCgpPbiA4LzE4LzA2 LCBhc3Npc3MgPGFzc2lzc0AxNjMuY29tPiB3cm90ZToKPiBoaSBhbGwsCj4gSSBpbnN0YWxsZWQg bWF0cGxvdGxpYiBhbmQgaXQgd29ya2VkIHZlcnkgd2VsbCB3aXRoIFRrQWdnL0FnZy4gQnV0IHdo ZW4gdXNlCj4gR3RrQWdnIG9yIEd0aywgcHl0aG9uIGp1c3QgY29yZWR1bXBlZCB3aXRob3V0IGFu eSBwcm9tcHRzLgo+IEZvciBleGFtcGxlLCBweXRob24gYS5weSAtZFRrQWdnLCBpdCB3b3JrZWQu IHB5dGhvbiBhLnB5IC1kR3RrQWdnLAo+ICJTZWdtZW50YXRpb24gZmF1bHQgKGNvcmUgZHVtcGVk KSIuCj4KPiBXaGVuIHJ1bm5pbmcgdGhlIGV4YW1wbGVzIHdpdGggLWRHdGtBZ2csIGd0a19zcHJl YWRzaGVldC5weQo+IGVtYmVkZGluZ19pbl9ndGsucHkgZW1iZWRkaW5nX2luX2d0azMucHkgd29y a2VkLCBlbWJlZGRpbmdfaW5fZ3RrMi5weQo+IHB5bGFiX3dpdGhfZ3RrLnB5IGZhaWxlZCBhbmQg Y29yZWR1bXBlZCB3aXRob3V0IGFueSBwcm9tcHRzLgo+Cj4gTXkgc3lzdGVtIGlzIE5ldEJTRCBB TUQ2NC0zLjAuIFdpdGggcHl0aG9uIDIuNC4zLCBndGsrLTIuOC4xOSwgcHlndGstMi44LjYuCj4K PiBJcyB0aGVyZSBzb21ldGluZyB3cm9uZyB3aXRoIG15IHN5c3RlbT8gVGhhbmtzIGZvciB5b3Vy IHN1Z2dlc3Rpb24uCj4KPiBhc3Npc3MKPiAyMDA2LjguMTgKPgo+Cj4KPgo+Cj4KPiAgx8Ag0b0g ISDEpyDK3iC14yC/qCAxINXbIMCyCj4gIDEuIL3xIMfvIDUgwOAgyasgTU0gtcQg9qYg17AgMi5O SUtFIFwgsKIgtc8gXCBLYXBwYSBcIMDuIMT+IMirILOhIDk5INSqICEKPiAtLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tCj4gVXNpbmcgVG9tY2F0IGJ1dCBuZWVkIHRvIGRvIG1vcmU/IE5lZWQgdG8gc3VwcG9ydCB3 ZWIgc2VydmljZXMsIHNlY3VyaXR5Pwo+IEdldCBzdHVmZiBkb25lIHF1aWNrbHkgd2l0aCBwcmUt aW50ZWdyYXRlZCB0ZWNobm9sb2d5IHRvIG1ha2UgeW91ciBqb2IKPiBlYXNpZXIKPiBEb3dubG9h ZCBJQk0gV2ViU3BoZXJlIEFwcGxpY2F0aW9uIFNlcnZlciB2LjEuMC4xIGJhc2VkIG9uIEFwYWNo ZSBHZXJvbmltbwo+IGh0dHA6Ly9zZWwuYXMtdXMuZmFsa2FnLm5ldC9zZWw/Y21kPWxuayZraWQ9 MTIwNzA5JmJpZD0yNjMwNTcmZGF0PTEyMTY0Mgo+Cj4gX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX18KPiBNYXRwbG90bGliLXVzZXJzIG1haWxpbmcgbGlzdAo+ IE1hdHBsb3RsaWItdXNlcnNAbGlzdHMuc291cmNlZm9yZ2UubmV0Cj4gaHR0cHM6Ly9saXN0cy5z b3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vbWF0cGxvdGxpYi11c2Vycwo+Cj4KPgo= |
From: Stefan v. d. W. <st...@su...> - 2006-08-18 09:12:28
|
On Thu, Aug 17, 2006 at 09:48:58PM -0700, Brendan Barnwell wrote: > [I accidentally sent this message privately to the sender before. . . w= hy=20 > doesn't this list set the Reply-To header to the list?] I don't think mailing lists should change the reply-to: http://www.unicom.com/pw/reply-to-harmful.html Cheers St=E9fan |
From: assiss <as...@16...> - 2006-08-18 06:54:08
|
hi all, I installed matplotlib and it worked very well with TkAgg/Agg. But when use GtkAgg or Gtk, python just coredumped without any prompts. For example, python a.py -dTkAgg, it worked. python a.py -dGtkAgg, "Segmentation fault (core dumped)". When running the examples with -dGtkAgg, gtk_spreadsheet.py embedding_in_gtk.py embedding_in_gtk3.py worked, embedding_in_gtk2.py pylab_with_gtk.py failed and coredumped without any prompts. My system is NetBSD AMD64-3.0. With python 2.4.3, gtk+-2.8.19, pygtk-2.8.6. Is there someting wrong with my system? Thanks for your suggestion. assiss 2006.8.18 |
From: assiss <as...@16...> - 2006-08-18 06:37:42
|
hi all, I installed matplotlib and it worked very well with TkAgg/Agg. But when use GtkAgg or Gtk, python just coredumped without any prompts. For example, python a.py -dTkAgg, it worked. python a.py -dGtkAgg, "Segmentation fault (core dumped)". My system is NetBSD AMD64-3.0. With python 2.4.3, gtk+-2.8.19, pygtk-2.8.6. Is there someting wrong with my system? Thanks for your suggestion. assiss 2006.8.18 |
From: Brendan B. <bre...@br...> - 2006-08-18 04:47:24
|
[I accidentally sent this message privately to the sender before. . . why doesn't this list set the Reply-To header to the list?] Darren Dale wrote: >> On Wednesday 16 August 2006 02:26, Brendan Barnwell wrote: > >>>> Hi, I'm trying to get matplotlib to give me a plot where the legend is >>>> outside the axes. >>>> >>>> I saw several posts about this in the mailing list archives, but none of >>>> them really seem to provide workable solutions. > >> >> Try passing the loc kwarg to legend(). Like legend([...], loc=(1.01, 0.25)) Thanks, that works after a fashion. Again, though, I can't figure out a programmatic way to decide what values to use there. I would like to be able to calculate the size of the window, calculate the size of the legend, and then set the size of the axes so that everything fits nicely. Why is it that the sizes and positions for axes and legends are specified in totally different units (proportional vs. pixel)? Is there a way to say "I want the axes to take up 80% of the window and the legend to take up the remaining 20%"? Is there a way to change the format of the legend, so that it is, for example, in two columns instead of one? Or to get the legend text to word wrap within a fixed-width box instead of just causing the legend box to grow without bound? What I'm trying to do is figure out how to programmatically arrange the various elements in the plot window so that they look nice. I guess the simplest question I can ask is: how can I getthe width of the legend and the width of the axes in comparable units? If I could at least get that, I could manually calculate how big the axes should be. >>>> Or, alternatively, is there some easier way to get legends to NEVER >>>> overlap lines? > >> >> try legend([...], loc='best') That doesn't work, because 'best' apparently isn't implemented for figure legends, and if I use an axes legend then it sometimes overlaps the lines. -- --Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown |
From: Charlie M. <cw...@gm...> - 2006-08-17 21:29:42
|
We used to explicitly remove the link when we used mingw for the python2.4 build. The VS build didn't seem to suffer from the problem, but not these reports are coming up. I might try removing the link again. Otherwise I will look into including it. - Charlie On 8/17/06, Leandro Lameiro <la...@gm...> wrote: > Hello. > > I have got this error on a very clean installation of Windows 98SE and > matplotlib 0.87.4 / numpy 0.9.8 / official python 2.4. > > >>> from pylab import * > > The import of the numpy version of the _transforms module, > _ns_transforms, failed. This is is either because numpy was > unavailable when matplotlib was compiled, because a dependency of > _ns_transforms could not be satisfied, or because the build flag for > this module was turned off in setup.py. If it appears that > _ns_transforms was not built, make sure you have a working copy of > numpy and then re-install matplotlib. Otherwise, the following > traceback gives more details: > > Traceback (most recent call last): > File "<pyshell#0>", line 1, in ? > from pylab import * > File "C:\Python24\Lib\site-packages\pylab.py", line 1, in > ? > from matplotlib.pylab import * > File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", > line 200, in ? > from axes import Axes, PolarAxes > File "C:\Python24\Lib\site-packages\matplotlib\axes.py", > line 14, in ? > from artist import Artist, setp > File > "C:\Python24\Lib\site-packages\matplotlib\artist.py", line > 4, in ? > from transforms import identity_transform > File > "C:\Python24\Lib\site-packages\matplotlib\transforms.py", > line 215, in ? > from _transforms import Value, Point, Interval, Bbox, Affine > File > "C:\Python24\Lib\site-packages\matplotlib\_transforms.py", > line 17, in ? > from matplotlib._ns_transforms import * > ImportError: DLL load failed: N=E3o =E9 poss=EDvel encontrar um dos arqui= vos de > biblioteca necess=E1rio para executar esse aplicativo. > > (free translation -> DLL load failed: Couldn't find one of the files of t= he > library needed to run this program) > > I have searched for it and found this post > http://mail.enthought.com/pipermail/enthought-dev/2006-May/001597.html, > that seems so much like my problem, except that it is using Numeric not > numpy. > > Also, i found this post > http://www.mail-archive.com/mat...@li.../msg005= 02.html > that could be related to my problem. > > So, I decided to pull this DLL from the web and throw at C:\Windows\Syste= m. > Then, everything worked fine. > > This confirms Christopher Barker suspicions ( > http://www.mail-archive.com/mat...@li.../msg005= 23.html > ) that it is a DLL not shipped with stock Windows but some other program > would install it (that is what nobody complained about the missing DLL). > > I think matplotlib should ship this DLL, as a lot of other programs do..= . > > -- > Best regards > Leandro Lameiro > > Blog: http://lameiro.redirectme.net/blog > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > |
From: Leandro L. <la...@gm...> - 2006-08-17 11:52:50
|
Hello. I have got this error on a very clean installation of Windows 98SE and matplotlib 0.87.4 / numpy 0.9.8 / official python 2.4. >>> from pylab import * The import of the numpy version of the _transforms module, _ns_transforms, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _ns_transforms could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _ns_transforms was not built, make sure you have a working copy of numpy and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File "<pyshell#0>", line 1, in ? from pylab import * File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ? from matplotlib.pylab import * File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 200, in ? from axes import Axes, PolarAxes File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 14, in ? from artist import Artist, setp File "C:\Python24\Lib\site-packages\matplotlib\artist.py", line 4, in ? from transforms import identity_transform File "C:\Python24\Lib\site-packages\matplotlib\transforms.py", line 215, in ? from _transforms import Value, Point, Interval, Bbox, Affine File "C:\Python24\Lib\site-packages\matplotlib\_transforms.py", line 17, in ? from matplotlib._ns_transforms import * ImportError: DLL load failed: N=E3o =E9 poss=EDvel encontrar um dos arquivo= s de biblioteca necess=E1rio para executar esse aplicativo. (free translation -> DLL load failed: Couldn't find one of the files of the library needed to run this program) I have searched for it and found this post http://mail.enthought.com/pipermail/enthought-dev/2006-May/001597.html, tha= t seems so much like my problem, except that it is using Numeric not numpy. Also, i found this post http://www.mail-archive.com/mat...@li.../msg00502= .htmlthat could be related to my problem. So, I decided to pull this DLL from the web and throw at C:\Windows\System. Then, everything worked fine. This confirms Christopher Barker suspicions ( http://www.mail-archive.com/mat...@li.../msg00523= .html) that it is a DLL not shipped with stock Windows but some other program would install it (that is what nobody complained about the missing DLL). I think matplotlib should ship this DLL, as a lot of other programs do... --=20 Best regards Leandro Lameiro Blog: http://lameiro.redirectme.net/blog |
From: CL <ane...@gm...> - 2006-08-17 06:16:19
|
Hi, When matplotlib is used interactively, eg, with ipython, I find that it will be convenient if I can copy the graph into clipboard and then paste it to other program. But this feature is missed in current release. Is there a plan to add this functionality in a future release? If possible, adding a print/preview button will be useful too. Many thanks for developers' great work. Chunlei |
From: Nelson M. <ne...@mo...> - 2006-08-16 21:08:24
|
Thanks for the answers. I was glad to see Steven Chaplin suggest that it is possible to get libpng to write directly to a stream like StringIO; seems like a good thing. In the meantime I came up with the following little helper functions to render a Figure to PNG (via Agg) or SVG (via SVG). def getPngFromFigure(figure, imageSize): canvas = FigureCanvasAgg(figure) canvas.draw() imageSize = canvas.get_width_height() imageRgb = canvas.tostring_rgb() pilImage = PIL.Image.fromstring("RGB", imageSize, imageRgb) buffer = StringIO.StringIO() pilImage.save(buffer, "PNG") return buffer.getvalue() def getSvgFromFigure(figure, imageSize): canvas = FigureCanvasSVG(figure) canvas.draw() svgwriter = StringIO.StringIO() renderer = RendererSVG(imageSize[0], imageSize[1], svgwriter) figure.draw(renderer) renderer.finish() return svgwriter.getvalue() This code works, and while I don't really understand matplotlib internals I think I'm mostly doing things right. Two minor problems: The Agg images are RGB, no alpha channel. Amusingly enough Agg gives you ARGB but PIL only understands RGBA. My code is ignoring whatever size the Figure itself thinks it should be. Jouni K Seppanen wrote: > Nelson Minar <ne...@mo...> writes: > > >> matplotlib is great, particularly the image quality. I'm using >> matplotlib to generate images in a webapp and have run into a problem. >> How do I get it to give me the rendered image bytes in a string rather >> than writing the image to a file? >> > > FigureCanvasAgg has the undocumented methods buffer_rgba, > tostring_argb, and tostring_rgb, which might help here. > > >> The docs for FigureCanvasAgg.print_figure() says that if the filename >> is actually a file object then it will write the bytes to that file >> object. This works great if I pass in sys.stdout, but as soon as I try >> to use a StringIO() instance to capture the bytes in Python I get an >> error: >> > [...] > >> TypeError: Could not convert object to file pointer >> > > libpng seems to require an actual file pointer. This was discussed in > http://thread.gmane.org/gmane.comp.python.matplotlib.general/3118/ > > |
From: Steven C. <ste...@ya...> - 2006-08-16 14:59:14
|
> Nelson Minar <ne...@mo...> writes: > > > matplotlib is great, particularly the image quality. I'm using > > matplotlib to generate images in a webapp and have run into a problem. > > How do I get it to give me the rendered image bytes in a string rather > > than writing the image to a file? > > FigureCanvasAgg has the undocumented methods buffer_rgba, > tostring_argb, and tostring_rgb, which might help here. > > > The docs for FigureCanvasAgg.print_figure() says that if the filename > > is actually a file object then it will write the bytes to that file > > object. This works great if I pass in sys.stdout, but as soon as I try > > to use a StringIO() instance to capture the bytes in Python I get an > > error: > [...] > > TypeError: Could not convert object to file pointer > > libpng seems to require an actual file pointer. This was discussed in > http://thread.gmane.org/gmane.comp.python.matplotlib.general/3118/ libpng does not require a file pointer. It can write to streams (or StringIO objects) too. Cairo uses libpng to write to streams, and PyCairo uses cairo (and libpng) to write to file-like objects (like StringIO), so it is possible. But I don't know the details, the technique is buried somewhere in the cairo and libpng C code. Steve Send instant messages to your online friends http://au.messenger.yahoo.com |
From: Samuel G. <sg...@ol...> - 2006-08-16 13:33:37
|
Sorry for the mistake. Darren Dale wrote: > On Wednesday 16 August 2006 08:49, Samuel GARCIA wrote: > >> I am not good enougth track and solve the problem. >> Maybe I can be a beta tester. >> >> I saw in svn that the author of qt4 backend is Charlie Moad. >> And it is very young (6 weeks). >> > > I think you misread the svn entry. James Amundson ported the qt3 backend to > qt4, but it was not quite finished. I finished the port and committed it. > Charlie added blitting. > |
From: Charlie M. <cw...@gm...> - 2006-08-16 13:04:01
|
I am not the author of it. I just may of made the last commits to it. I am pretty sure Darren wrote the initial implimentatin. The only example that exists right now is animation_blit_qt4.py. On 8/16/06, Samuel GARCIA <sg...@ol...> wrote: > > I am not good enougth track and solve the problem. > Maybe I can be a beta tester. > > I saw in svn that the author of qt4 backend is Charlie Moad. > And it is very young (6 weeks). > > So a question for Charlie moad : do you have a example which could work on > my debian unstable station for embedding_in_qt4.py ? > > thank you > > Samuel > > > > Darren Dale wrote: > On Wednesday 16 August 2006 04:54, Samuel GARCIA wrote: > > > I still have a problem. This is my code : > > import sys > > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > from matplotlib.backends.backend_qt4agg import > FigureCanvasQTAgg as > FigureCanvas > from matplotlib.figure import Figure > > #-------------------------------------------------------------------------- > ---- class MyWidget(QWidget): > def __init__(self, parent=None): > QWidget.__init__(self, parent) > self.menuBar = QMenuBar() > self.fileMenu = QMenu(self.tr("&File"), self) > self.menuBar.addMenu(self.fileMenu) > > mainLayout = QVBoxLayout() > mainLayout.setMenuBar(self.menuBar) > > self.setLayout(mainLayout) > > #-------------------------------------------------------------------------- > ---- if __name__ == "__main__": > app = QApplication(sys.argv) > dialog = MyWidget() > dialog.show() > sys.exit(app.exec_()) > > and it does not works because the main window is blocking. > But when I comment this line : > #from matplotlib.backends.backend_qt4agg import > FigureCanvasQTAgg as > FigureCanvas > it works ! > What am I doing wrong ? > > You may not be doing anything wrong. The qt4 backend is new and hasn't seen > much use. I think you are the first to try to embed in your own qt4 > application. If you feel up to it, maybe you could try to track down the > problem. > > Darren > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > |
From: Darren D. <dd...@co...> - 2006-08-16 13:00:01
|
On Wednesday 16 August 2006 08:49, Samuel GARCIA wrote: > I am not good enougth track and solve the problem. > Maybe I can be a beta tester. > > I saw in svn that the author of qt4 backend is Charlie Moad. > And it is very young (6 weeks). I think you misread the svn entry. James Amundson ported the qt3 backend to qt4, but it was not quite finished. I finished the port and committed it. Charlie added blitting. |
From: Samuel G. <sg...@ol...> - 2006-08-16 12:50:09
|
I am not good enougth track and solve the problem. Maybe I can be a beta tester. I saw in svn that the author of qt4 backend is Charlie Moad. And it is very young (6 weeks). So a question for Charlie moad : do you have a example which could work on my debian unstable station for embedding_in_qt4.py ? thank you Samuel Darren Dale wrote: > On Wednesday 16 August 2006 04:54, Samuel GARCIA wrote: > >> I still have a problem. This is my code : >> >> import sys >> >> from PyQt4.QtCore import * >> from PyQt4.QtGui import * >> >> from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as >> FigureCanvas >> from matplotlib.figure import Figure >> >> #-------------------------------------------------------------------------- >> ---- class MyWidget(QWidget): >> def __init__(self, parent=None): >> QWidget.__init__(self, parent) >> self.menuBar = QMenuBar() >> self.fileMenu = QMenu(self.tr("&File"), self) >> self.menuBar.addMenu(self.fileMenu) >> >> mainLayout = QVBoxLayout() >> mainLayout.setMenuBar(self.menuBar) >> >> self.setLayout(mainLayout) >> >> #-------------------------------------------------------------------------- >> ---- if __name__ == "__main__": >> app = QApplication(sys.argv) >> dialog = MyWidget() >> dialog.show() >> sys.exit(app.exec_()) >> >> and it does not works because the main window is blocking. >> But when I comment this line : >> #from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as >> FigureCanvas >> it works ! >> What am I doing wrong ? >> > > You may not be doing anything wrong. The qt4 backend is new and hasn't seen > much use. I think you are the first to try to embed in your own qt4 > application. If you feel up to it, maybe you could try to track down the > problem. > > Darren > |
From: Darren D. <dd...@co...> - 2006-08-16 12:16:23
|
On Wednesday 16 August 2006 02:26, Brendan Barnwell wrote: > Hi, I'm trying to get matplotlib to give me a plot where the legend is > outside the axes. > > I saw several posts about this in the mailing list archives, but none of > them really seem to provide workable solutions. Try passing the loc kwarg to legend(). Like legend([...], loc=(1.01, 0.25)) > Or, alternatively, is there some easier way to get legends to NEVER > overlap lines? try legend([...], loc='best') Darren |
From: Darren D. <dd...@co...> - 2006-08-16 12:14:12
|
On Wednesday 16 August 2006 04:54, Samuel GARCIA wrote: > I still have a problem. This is my code : > > import sys > > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as > FigureCanvas > from matplotlib.figure import Figure > > #-------------------------------------------------------------------------- >---- class MyWidget(QWidget): > def __init__(self, parent=None): > QWidget.__init__(self, parent) > self.menuBar = QMenuBar() > self.fileMenu = QMenu(self.tr("&File"), self) > self.menuBar.addMenu(self.fileMenu) > > mainLayout = QVBoxLayout() > mainLayout.setMenuBar(self.menuBar) > > self.setLayout(mainLayout) > > #-------------------------------------------------------------------------- >---- if __name__ == "__main__": > app = QApplication(sys.argv) > dialog = MyWidget() > dialog.show() > sys.exit(app.exec_()) > > and it does not works because the main window is blocking. > But when I comment this line : > #from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as > FigureCanvas > it works ! > What am I doing wrong ? You may not be doing anything wrong. The qt4 backend is new and hasn't seen much use. I think you are the first to try to embed in your own qt4 application. If you feel up to it, maybe you could try to track down the problem. Darren |
From: Samuel G. <sg...@ol...> - 2006-08-16 08:54:23
|
Thank you, Sorry I did known the existence of matplotlib.backends.backend_qt4agg. It is more easy than I thought. but I still have a problem. This is my code : import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure #------------------------------------------------------------------------------ class MyWidget(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) self.menuBar = QMenuBar() self.fileMenu = QMenu(self.tr("&File"), self) self.menuBar.addMenu(self.fileMenu) mainLayout = QVBoxLayout() mainLayout.setMenuBar(self.menuBar) self.setLayout(mainLayout) #------------------------------------------------------------------------------ if __name__ == "__main__": app = QApplication(sys.argv) dialog = MyWidget() dialog.show() sys.exit(app.exec_()) and it does not works because the main window is blocking. But when I comment this line : #from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas it works ! What am I doing wrong ? PyQT4 is 4.0.1 Matplotlib is 0.87.4 Samuel Darren Dale wrote: > On Tuesday 15 August 2006 16:05, sg...@ol... wrote: > >> Thank you very much. >> >> What I would like is example for embedding_in_qt.py but whith qt4 >> >> when I tried : >> >> import PyQt4 >> from PyQt4.QtCore import * >> from PyQt4.QtGui import * >> >> from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as >> FigureCanvas >> from matplotlib.figure import Figure >> >> but I have : >> >> Traceback (most recent call last): >> > > You should be doing this instead: > > from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas > > Darren > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Brendan B. <bre...@br...> - 2006-08-16 06:26:20
|
Hi, I'm trying to get matplotlib to give me a plot where the legend is outside the axes. I saw several posts about this in the mailing list archives, but none of them really seem to provide workable solutions. Using Figure.legend() doesn't really put the legend outside the figure, because it doesn't resize the axes, so the legend just overlaps the figure. In the spirit of open source, I thought I'd try to do it myself. But I can't even figure out how the various matplotlib objects are being positioned in the window. Like, I can get some info about the axes with axes.get_position(), and I can get some info about the legend with legend.get_window_extent().get_bounds(), but the former is just proportional size information relative to the figure as a whole, and the second is in some coordinates I don't know how to interpret. How can I get information about the bounding boxes of the actual plot (i.e., the axes and plot area including ticks and labels) and the legend, in compatible numbers that will allow me to determine whether they overlap? Or, alternatively, is there some easier way to get legends to NEVER overlap lines? I'm rather surprised that there seems to be no way to guarantee this, since it seems like an obvious thing to want, and also since there seem to be a bunch of requests for it on the mailing list. Thanks for the help. -- --Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown |
From: Jouni K S. <jk...@ik...> - 2006-08-16 04:14:27
|
Nelson Minar <ne...@mo...> writes: > matplotlib is great, particularly the image quality. I'm using > matplotlib to generate images in a webapp and have run into a problem. > How do I get it to give me the rendered image bytes in a string rather > than writing the image to a file? FigureCanvasAgg has the undocumented methods buffer_rgba, tostring_argb, and tostring_rgb, which might help here. > The docs for FigureCanvasAgg.print_figure() says that if the filename > is actually a file object then it will write the bytes to that file > object. This works great if I pass in sys.stdout, but as soon as I try > to use a StringIO() instance to capture the bytes in Python I get an > error: [...] > TypeError: Could not convert object to file pointer libpng seems to require an actual file pointer. This was discussed in http://thread.gmane.org/gmane.comp.python.matplotlib.general/3118/ -- Jouni |
From: Nelson M. <ne...@mo...> - 2006-08-15 23:06:37
|
matplotlib is great, particularly the image quality. I'm using matplotlib to generate images in a webapp and have run into a problem. How do I get it to give me the rendered image bytes in a string rather than writing the image to a file? The docs for FigureCanvasAgg.print_figure() says that if the filename is actually a file object then it will write the bytes to that file object. This works great if I pass in sys.stdout, but as soon as I try to use a StringIO() instance to capture the bytes in Python I get an error: File "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 453, in print_figure self.renderer._renderer.write_png(filename) TypeError: Could not convert object to file pointer The same use of StringIO does work with GD; is this a bug in the Agg backend? Please see attached test code. BTW, while I'm here, I noticed a discusison on matplotlib-devel about how to specify the image format when rendering it to the backend: http://www.mail-archive.com/mat...@li.../msg00150.html I'm in favour of an explicit format argument as well, for exactly the webapp use case. I'd like to easily be able to get the bytes for either the PNG or SVG of an image. |
From: Darren D. <dd...@co...> - 2006-08-15 20:50:16
|
On Tuesday 15 August 2006 16:05, sg...@ol... wrote: > Thank you very much. > > What I would like is example for embedding_in_qt.py but whith qt4 > > when I tried : > > import PyQt4 > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as > FigureCanvas > from matplotlib.figure import Figure > > but I have : > > Traceback (most recent call last): You should be doing this instead: from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas Darren |