[Matplotlib-users] backends issue
I have a problem with backend: by default it was Agg; i tried to change the file .matplotlibrc and to put GTKAgg, but as I import pylab I got these errors: from pylab import * Traceback (most recent call last): File stdin, line 1, in ? File /usr/local/lib/python2.4/site-packages/pylab.py, line 1, in ? from matplotlib.pylab import * File /usr/local/lib/python2.4/site-packages/matplotlib/pylab.py, line 220, in ? new_figure_manager, draw_if_interactive, show = pylab_setup() File /usr/local/lib/python2.4/site-packages/matplotlib/backends/__init__.py, line 23, in pylab_setup globals(),locals(),[backend_name]) File /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py, line 10, in ? from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py, line 6, in ? import gobject ImportError: No module named gobject What can I do? Thanks. Chiara _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] backends issue
Chiara Caronna wrote: I have a problem with backend: by default it was Agg; i tried to change the file .matplotlibrc and to put GTKAgg, but as I import pylab I got these errors: File /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py, line 6, in ? import gobject ImportError: No module named gobject What can I do? Install PyGTK. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] display GUI scientific notation
On Wednesday 21 February 2007 2:45:25 am Eric Firing wrote: Matthew Auger wrote: Ah...right. That works well enough (I believe that I originally had editted backend_bases to circumvent the format_coord call--clearly not the best solution)! I don't know of a good reason to *not* use the axis formatting, but perhaps an rcparam could control this? I don't know what the historical reason for the present default is, but one candidate is speed: the coordinate numbers get reformatted and printed at a great rate as the cursor moves across a plot, so one might not want to have the formatting done by a big chunk of python code. format_data_short will typically be faster than format_data. Here is the reason format_data_short was added: the x,y coordinates of the cursor used to be printed to 10 digits, something I added when I was working out the offset ticklabels for the x and y axis. These coordinates, when rendered into the toolbar, were causing the figure window to resize to make room for the numbers in the toolbar. format_data is also used to format the ticklabels, so John suggested the new method. At the time, we needed a quick work around. Maybe it's time to give it another look, and see if there is a better long-term solution. Darren - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
At 9:42 AM -0800 2007-02-21, Chris Barker wrote: Russell E Owen wrote: I did earlier today; I'm hoping it will go up in the next day or so. WXAgg is built against wxPython 2.6.x because last I heard the 2.8.x issues weren't resolved. Correct. I'm still not sure how well MPL works with wxPython2.8 on other platforms, but no one has fixed the issues on OS-X yet. There is something weird with toolbars with wxPython2.8, I've run into that with some other code, so it may even take a new release of wxPython to get it all right... Thank you for the update. FYI: matplotlib 0.90.0 for Python 2.5 is now available at http://pythonmac.org/packages. I did not build a version for Python 2.4. Regards, -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
Chris Barker wrote: Russell E Owen wrote: I did earlier today; I'm hoping it will go up in the next day or so. WXAgg is built against wxPython 2.6.x because last I heard the 2.8.x issues weren't resolved. Correct. I'm still not sure how well MPL works with wxPython2.8 on other platforms, but no one has fixed the issues on OS-X yet. There is something weird with toolbars with wxPython2.8, I've run into that with some other code, so it may even take a new release of wxPython to get it all right. Of course, that wont' do it if I dont' get around to fiing a bug report! wxPython includes a wxversion module that lets one select whihc version of wxPython you want run, if more than one is installed. It might be nice if those calls could get put into MPL somewhere, so that when MPL is built against a given version, that version will be run. If someone can do a Windows build against a wxPython 2.8 version (and Python 2.5) I could do some testing. Is there a list of what the problems are? Werner - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Maximized vs non-maximized output
Okay, I tried saving using the postscript format, and I end up with the ugly plot also. In fact, if I maximize the plot and then save as .ps file, I get ugly plot as well. So, saving it in PS made no difference - that part is correct but it means I end up with the same font, and dimension as the non-maximized version. Somehow, if I maximize the plot using the show() command, maximize it first, then save it (in png format), I end up with a very nice looking plot. I just wish there is a simple way to accomplish that in batch mode. Regards, -- John Henry - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: matplotlib-users@lists.sourceforge.net Sent: Wednesday, February 21, 2007 11:17:18 AM Subject: Re: [Matplotlib-users] Maximized vs non-maximized output Thanks for the reply, Darren. I didn't post the plot because I don't know if the list accept email attachments, and I don't have any space on the web for file sharing. I'll try to figure out a way to post the plots. BTW: I called savefig with the filename, and a dpi of 600 and nothing else. May be that was the problem. Regards, -Original Message- From: Darren Dale [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 10:54 AM To: matplotlib-users@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: Re: [Matplotlib-users] Maximized vs non-maximized output On Wednesday 21 February 2007 01:40:59 pm [EMAIL PROTECTED] wrote: Hi list, I am still fairly new to Matplotlib. If I use the default settings, after creating a plot, and save the file, I get a .png file that looks really ugly. However, if I view the plot at the screen first (using the show() command), maximized the plot, and then save the file, I get a very nice looking .png file. If I am doing lots of plots, obviously I don't want to have to sit there and view each and every plots, maximize, save, ... How can I accomplish this in batch mode? We could probably be of more help if you posted examples of your ugly and nice pngs. For now I'll take a guess: maybe what you are seeing is an effect of the resolution and figure size? You can pass a dpi kwarg to the savefig command, or you can set it in your rc settings. Also, you can set the figure size by doing figure(figsize=(x,y)), or you can change the default figure size in your rc settings. How does your postscript output look? That format would not be influenced by resolution. Darren -- John Henry - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
Werner F. Bruhin wrote: If someone can do a Windows build against a wxPython 2.8 version (and Python 2.5) I could do some testing. Is there a list of what the problems are? no. One is that it won't build, due to a code error in the extension -- I don't know why that same error didn't cause a problem with earlier versions of wxPython. The other I know about is some oddities with the toolbar on OS-X -- I think those are OS-X only issues. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] display GUI scientific notation
Hi, I would like to add another annoying aspect of the digits in the GUI: When a log axis is used the displayed numbers looks like 10^-8.23 which is definitely not human readable. Do somebody know a quick fix to obtain something like 5.89e-9 or 5.89x10^-9 ? Thanks, David - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Maximized vs non-maximized output
Okay, I posted the ugly vs pretty plots at: http://new.photos.yahoo.com/kimwaic106/album I stripped out most of the titles and subtitles but I think you can still see the difference between the two. (Don't worry about the middle unintelligble part). Regards, -- John Henry - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: matplotlib-users@lists.sourceforge.net Sent: Wednesday, February 21, 2007 11:37:54 AM Subject: Re: [Matplotlib-users] Maximized vs non-maximized output Okay, I tried saving using the postscript format, and I end up with the ugly plot also. In fact, if I maximize the plot and then save as .ps file, I get ugly plot as well. So, saving it in PS made no difference - that part is correct but it means I end up with the same font, and dimension as the non-maximized version. Somehow, if I maximize the plot using the show() command, maximize it first, then save it (in png format), I end up with a very nice looking plot. I just wish there is a simple way to accomplish that in batch mode. Regards, -- John Henry - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: matplotlib-users@lists.sourceforge.net Sent: Wednesday, February 21, 2007 11:17:18 AM Subject: Re: [Matplotlib-users] Maximized vs non-maximized output Thanks for the reply, Darren. I didn't post the plot because I don't know if the list accept email attachments, and I don't have any space on the web for file sharing. I'll try to figure out a way to post the plots. BTW: I called savefig with the filename, and a dpi of 600 and nothing else. May be that was the problem. Regards, -Original Message- From: Darren Dale [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 10:54 AM To: matplotlib-users@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: Re: [Matplotlib-users] Maximized vs non-maximized output On Wednesday 21 February 2007 01:40:59 pm [EMAIL PROTECTED] wrote: Hi list, I am still fairly new to Matplotlib. If I use the default settings, after creating a plot, and save the file, I get a .png file that looks really ugly. However, if I view the plot at the screen first (using the show() command), maximized the plot, and then save the file, I get a very nice looking .png file. If I am doing lots of plots, obviously I don't want to have to sit there and view each and every plots, maximize, save, ... How can I accomplish this in batch mode? We could probably be of more help if you posted examples of your ugly and nice pngs. For now I'll take a guess: maybe what you are seeing is an effect of the resolution and figure size? You can pass a dpi kwarg to the savefig command, or you can set it in your rc settings. Also, you can set the figure size by doing figure(figsize=(x,y)), or you can change the default figure size in your rc settings. How does your postscript output look? That format would not be influenced by resolution. Darren -- John Henry - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
On Feb 21, 2007, at 1:58 PM, Christopher Barker wrote: Werner F. Bruhin wrote: Is there a list of what the problems are? One is that it won't build, due to a code error in the extension -- I don't know why that same error didn't cause a problem with earlier versions of wxPython. The WXAgg backend itself should still function without _wxagg.so, which exists slowly to speed up the Agg/wx.Image/wx.Bitmap tango. I tried to get it up and running on OSX with wxPython 2.8 earlier today but was quickly stymied by an inscrutable problem with wxPyConstructObject(). Since I'd like to start moving away from using a C++ extension in the backend, I'm going to try to re- implement its functionality using the new wx.BitmapFromBufferRGBA(). The other I know about is some oddities with the toolbar on OS-X -- I think those are OS-X only issues. Once I have the WXAgg accelerator straightened out, I'll see if I can reproduce and fix this problem. Ken - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Maximized vs non-maximized output
On Wednesday 21 February 2007 03:44:56 pm [EMAIL PROTECTED] wrote: Okay, I posted the ugly vs pretty plots at: http://new.photos.yahoo.com/kimwaic106/album I stripped out most of the titles and subtitles but I think you can still see the difference between the two. (Don't worry about the middle unintelligble part). I dont really see any difference between these two plots, aside from the obvious and expected difference in font size and line width. If you want to pursue this further, please try to be more descriptive than ugly and pretty. Darren - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Maximized vs non-maximized output
Darren Dale wrote: I dont really see any difference between these two plots, aside from the obvious and expected difference in font size and line width. I suspect that is the OP's issue. Maybe this will help: http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Intermittent Matplotlib crash on OS X
Russell and Eric, many thanks for sticking with me on this issue. I've been able to reproduce the problem just by calling gc.collect() without loading Matplotlib, so it looks like the problem is elsewhere. I'm very sorry I didn't realize this sooner. Cheers, Anand - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
FYI: matplotlib 0.90.0 for Python 2.5 is now available at http://pythonmac.org/packages. I did not build a version for Python 2.4. Thanks, downloading as I type. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users