[Matplotlib-users] New matplotlib website
Hi matplotlib developers, Congratulations for the brand new matplotlib website! It looks great and modern, and that's exactly what matplotlib deserves. And congratulations for the new release as well, of course. Keep up your good work! Regards, Pierre Raybaut - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] canvas color
Hey There, I am using MatPlotLib to generate barchart and pie chart on Plone3, zope 2.10 Does anyone know how can i change the grey background color of the canvas, the one which comes by default. Is that the axes color or canvas color? Please Help. Thanks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] ANN: matplotitb-0.91.3
matplotlib 0.91.3 is released = This is the maintenance bug-fix and feature enhancement release of the 0.91 branch. Because the 0.98 refactoring introduced more code breakage than usual, we decided to branch the 0.91 series for users unable to upgrade right away. We have ported as many bug fixes and features to the maintenance branch as possible, and these are now available for release as 0.91.3. Homepage: http://matplotlib.sf.net Downloads are available at http://sourceforge.net/project/platformdownload.php?group_id=80706 with binary installers for windows and OS X. Thanks to Charlie Moad for the builds and release. What's new in matplotlib 0.91.3 === ginput function --- ginput (http://matplotlib.sf.net/matplotlib.pyplot.html#-ginput) is a blocking function for interactive use to get input from the user. A long requested feature submitted by Gael Varoquaux. See http://matplotlib.sf.net/examples/pylab/ginput_demo.py. better savefig -- savefig (http://matplotlib.sf.net/matplotlib.pyplot.html#-savefig) now supports save to file handles (great for web app servers) or unicode filenames on all backends record array functions -- some more helper functions to facilitate work with record arrays: rec_groupby, rec2txt, and rec_summarize. These are found in matplotlib.mlab (http://matplotlib.sf.net/matplotlib.mlab.html) accurate elliptical arcs In support of the Phoenix mission to Mars, which used matplotlib in ground tracking of the spacecraft, Michael Droettboom built on work by Charlie Moad to provide an extremely accurate 8-spline approximation to elliptical arcs (see http://matplotlib.sf.net/matplotlib.patches.html#Arc-draw)win the viewport. This provides a scale free, accurate graph of the arc regardless of zoom level. See the screenshot and example at http://matplotlib.sf.net/screenshots.html#ellipse_demo imread enhanced --- imread (http://matplotlib.sf.net/matplotlib.image.html#-imread) now will use PIL when available to load images and return numpy arrays backend enhancements * postscript : the postscript backend has clipping to paths (useful for polar plots) * PDF : the PDF backend handles composite glyphs properly, usetex fixes * SVG : clip to path (useful for polar plots), inkscape cut-and-paste fixes. * QT : Fixed a duplicate draw bug that slowed performance. Native qt toolbars and status bars used for the toolbar controls - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] ANN: matplotitb-0.98.0 milestone release
matplotlib 0.98.0 is released = This is a milestone release of matplotlib with a significant internal refactoring to support better transformations, path drawing, and readily extensible coordinate projections and scales. Michael Droettboom of STScI did the lion's share of the work, but a large number of developers have made many significant contributions. This is such a significant improvement of the matplotlib code base that we are jumping from the 0.91 series to the 0.98 series, in anticipation of rapid progress to 1.0. Downloads are available at http://sourceforge.net/project/platformdownload.php?group_id=80706 with binary installers for windows and OS X. Thanks to Charlie Moad for the builds and release. See the migration document at http://matplotlib.sf.net/MIGRATION.txt, the API changes at http://matplotlib.sf.net/API_CHANGES, and the full CHANGELOG at http://matplotlib.sf.net/CHANGELOG . You should manually any old install of site-packages/matplotlib since the new version will not properly install over it. We've also done some work on the look and feel of the web site, with a new logo an a less jarring color scheme, and are in the midst of a fairly significant documentation effort, so if you have any interest in writing documentation or doing website design, join us on the developers list and ash how you can contribute. What's new in matplotlib 0.98 = This is also available on the website at http://matplotlib.sourceforge.net/whats_new.html better transformations -- In what has been described as open-heart surgery on matplotlib, Michael Droettboom, supported by STScI, has rewritten the transformation infrastructure from the ground up, which not only makes the code more intuitive, it supports custom user projections and scales. See http://matplotlib.sf.net/doc/devel/add_new_projection.rst and the http://matplotlib.sf.net/matplotlib.transforms.html module documentation proper paths For the first time, matplotlib supports spine paths across backends, so you can pretty much draw anything. See the http://matplotlib.sf.net/creenshots.html#path_patch_demo screenshot . Thanks again to Michael Droettboom and STScI. histogram enhancements -- hist can handle 2D arrays and create side-by-side or stacked histograms, as well as cumulative filled and unfilled histograms http://matplotlib.sf.net/examples/pylab/histogram_demo_extended.py 2D histogram hexbin --- 2D hexagonal bin histogramming with optional log colorscales: http://matplotlib.sourceforge.net/examples/pylab/hexbin_demo.py ginput function --- ginput (http://matplotlib.sf.net/matplotlib.pyplot.html#-ginput) is a blocking function for interactive use to get input from the user. A long requested feature submitted by Gael Varoquaux. See http://matplotlib.sf.net/examples/pylab/ginput_demo.py. image optimizations --- Enhancements to speed up color mapping and panning and zooming on dense images better savefig -- savefig (http://matplotlib.sf.net/matplotlib.pyplot.html#-savefig) now supports save to file handles (great for web app servers) or unicode filenames on all backends record array functions -- some more helper functions to facilitate work with record arrays: rec_groupby, rec2txt, and rec_summarize. These are found in matplotlib.mlab (http://matplotlib.sf.net/matplotlib.mlab.html) accurate elliptical arcs In support of the Phoenix mission to Mars, which used matplotlib in ground tracking of the spacecraft, Michael Droettboom built on work by Charlie Moad to provide an extremely accurate 8-spline approximation to elliptical arcs (see http://matplotlib.sf.net/matplotlib.patches.html#Arc-draw)win the viewport. This provides a scale free, accurate graph of the arc regardless of zoom level. See the screenshot and example at http://matplotlib.sf.net/screenshots.html#ellipse_demo imread enhanced --- imread (http://matplotlib.sf.net/matplotlib.image.html#-imread) now will use PIL when available to load images and return numpy arrays backend enhancements * postscript : the postscript backend has clipping to paths (useful for polar plots) * PDF : the PDF backend handles composite glyphs properly, usetex fixes * SVG : clip to path (useful for polar plots), inkscape cut-and-paste fixes. * QT : Fixed a duplicate draw bug that slowed performance. Native qt toolbars and status bars used for the toolbar controls - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net
[Matplotlib-users] Qt4 backend in Matplotlib 0.98
Sorry for repeating myself... but congratulations again for the new Matplotlib release, especially for the Qt4 backend improvements. A few days ago, I was about to suggest some improvements in Qt4 backend, but what you've done is so much better. The Matplotlib toolbar is now a real Qt toolbar, and it changes everything: appareance, integration in a complex GUI. That is a great step ahead for matplotlib widgets in Qt GUIs. Another good reason to choose Qt4 as default backend in Matplotlib. Thanks for your great work. Regards, Pierre Raybaut - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ugly arrow with xpdf
Friedrich Hagedorn [EMAIL PROTECTED] writes: % xpdf foo.pdf then I see on the startpoint an ugly pike. With gv and evince everything is ok. Just to be sure about what the problem is, could you show us a screenshot of the ugly rendering, and another of a better rendering in another viewer? I think the list doesn't accept attachments, so it would be best if you could put the files somewhere on the web and send a link to the list or, failing that, send the screenshots to me by email. Also, what exact version of xpdf are you using? -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Controlling math mode font weights
First to correct some confusion (and a good candidate to add to the new docs that everyone is working so hard on...): mathtext and usetex are completely independent systems, and you can only use either one of the other. Therefore, if usetex is True, none of the mathtext settings will have any effect. Erik Tollerud wrote: I am having trouble figuring out how to control the weight of labels and text with the usetex option set to True. I would like to force all mathmode labels and text to be at least bold. I can imagine doing this either by substituting a font (i.e. changing the mathtext.fontset to 'custom' and all of the different matext.?? to some boldface font), or some the font.weight rc parameter, but neither of these has any effect - whatever I do, the mathmode and other TeX formatted text stays the same weight. How can I make it just turn up the weights to bold without changing anything else? This is not something that is directly supported. When usetex is True, all of the rendering happens with (La)TeX, so you're limited by what (La)TeX can do. You would probably need to find some LaTeX package that does this, and then \include it in the LaTeX preamble using the text.latex.preamble setting. My quick Googling didn't reveal anything that can do that, however. You can get bold in a math expression by enclosing content in \mathbf{}, but that is by definition upright bold. The reason, I believe, is that (core) LaTeX simply doesn't include the fonts for Greek characters and other symbols in bold. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] add an arrow to a lineEnd
Hello, the original problem that I have is to add an arrow to the end of a plotted line. I tried this from pylab import * x=linspace(0, 1.85, 100) y=sin(x) dx=x[-1] - x[-2] dy=y[-1] - y[-2] plot(x,y,lw=2) arrow(x[-2], y[-2], dx, dy, width=.02, length_includes_head=True, head_length=sqrt(dx**2+dy**2), lw=0, overhang=.1) But this is ugly. And when I zoom in the arrowsize isnt scaled with the linewidth. Any idea instead to switch to the pyx package? By, Friedrich - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] canvas color
On Mon, Jun 2, 2008 at 4:30 AM, Andyy [EMAIL PROTECTED] wrote: Does anyone know how can i change the grey background color of the canvas, the one which comes by default. Is that the axes color or canvas color? Please Help. That is the facecolor of the figure patch, and you can set it like: fig = figure(facecolor='red', edgecolor='white') and also when you save you can set it there, since we have different defaults for display and hardcopy fig.savfig('myfig', facecolor='white', edgecolor='white') both of these defaults can be changed in the matplotlib configuration matplotlibrc (http://matplotlib.sf.net/matplotlibrc) file using the following settings: figure.figsize : 8, 6# figure size in inches figure.dpi : 80 # figure dots per inch figure.facecolor : 0.75# figure facecolor; 0.75 is scalar gray figure.edgecolor : white # figure edgecolor savefig.dpi : 100 # figure dots per inch savefig.facecolor : white# figure facecolor when saving savefig.edgecolor : white# figure edgecolor when saving JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Update to Matplotlib and Numpy producing error
I tried to upgrade to the latest matplot lib (0.98 win32), which made me upgrade numpy (1.1.0). I followed the advice of the install hints and deleted the old matplotlib folder in site-packages before running the windows installer. Unfortunately, I get this error when trying to run my program in Eclipse: Traceback (most recent call last): File C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py, line 10, in module import pylab as p File C:\Python25\Lib\site-packages\matplotlib\pylab.py, line 246, in module from matplotlib.pyplot import * File C:\Python25\Lib\site-packages\matplotlib\pyplot.py, line 39, in module new_figure_manager, draw_if_interactive, show = pylab_setup() File C:\Python25\Lib\site-packages\matplotlib\backends\__init__.py, line 24, in pylab_setup globals(),locals(),[backend_name]) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtkagg.py, line 10, in module from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtk.py, line 6, in module import gobject ImportError: No module named gobject Did I not update something correctly? Regards, Kurt - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
On Mon, Jun 2, 2008 at 10:41 AM, KURT PETERS [EMAIL PROTECTED] wrote: File C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtk.py, line 6, in module import gobject ImportError: No module named gobject This is a problem with our installer since the default backend we have set is GTKAgg (we usually set it to GTKAgg). Fortunately, it is relatively easy for you to fix:. Edit site-packages/matplotlib/mpl-data/matplotlib and change the 'backend : GTKAgg' line to backend : TkAgg Charlie -- we will need to roll out a new binary builds which fix this ASAP because this will bite all the win32 users who don't have a custom rc, which is most of them I suspect. We'll also need to check the settings in the 91.3 release. My apologies for not testing this as you requested (I did test on linux though). You probably will also want to check the default backend for the OS X eggs too. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
John Hunter wrote: This is a problem with our installer since the default backend we have set is GTKAgg (we usually set it to GTKAgg). Fortunately, it is relatively easy for you to fix:. Edit site-packages/matplotlib/mpl-data/matplotlib and change the 'backend : GTKAgg' line to backend : TkAgg there are two files there: matplotlibrc and matplotlib.conf. is there a selection principle for choosing one or the other? i moved matplotlibrc to the indicated folder, set backed to WXAgg and some of the examples run. but i am getting failures finding pylab when i run the pylab examples: $ python geo_demo.py Traceback (most recent call last): File geo_demo.py, line 4, in module from pylab import * ImportError: No module named pylab am not sure why the interpreter isnt finding pylab module even tho, for example, examples/{api, animation} runs, with a few exceptions. Les - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] New matplotlib website
On Mon, Jun 2, 2008 at 3:15 AM, Pierre Raybaut [EMAIL PROTECTED] wrote: Hi matplotlib developers, Congratulations for the brand new matplotlib website! It looks great and modern, and that's exactly what matplotlib deserves. And congratulations for the new release as well, of course. Keep up your good work! Regards, Pierre Raybaut I completely agree--the site looks very nice, and congratulations on this major release! - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
On Mon, Jun 2, 2008 at 12:09 PM, Les Schaffer [EMAIL PROTECTED] wrote: there are two files there: matplotlibrc and matplotlib.conf. is there a selection principle for choosing one or the other? matplotlib.conf is used at build time, so you can ignore it with the binary installer. i moved matplotlibrc to the indicated folder, set backed to WXAgg and some By the way, on windows you can edit the rc file in place (ie leave it in mpl-data). I need to update the instructions in that file -- they are out of date. of the examples run. but i am getting failures finding pylab when i run the pylab examples: $ python geo_demo.py Traceback (most recent call last): File geo_demo.py, line 4, in module from pylab import * ImportError: No module named pylab am not sure why the interpreter isnt finding pylab module even tho, for example, examples/{api, animation} runs, with a few exceptions. This is weird: it is working on my end once I update my backend setting to TkAgg. After running the 0.98 installer do you have pylab.py in site-packages? Make sure you remove all matplotlib traces from site-packages before installing. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
Thanks, I made that change after an unfruitful attempt at installing gtk, which should have worked in my estimation. Now, at least I get by that original point. NOW basemaps won't work any more! When I run, I get: Traceback (most recent call last): File C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py, line 13, in module from matplotlib.toolkits.basemap import Basemap as Basemap ImportError: No module named toolkits.basemap I'm supposing that I NOW have to reinstall basemaps. The basemaps installer won't work for me any more though :-( This is that message I get when trying to reinstall basemaps: C:\Python25\Lib\basemap-0.99c:\Python25\python.exe setup.py install checking for GEOS lib in /usr/local checking for GEOS lib in /sw checking for GEOS lib in /opt checking for GEOS lib in /opt/local checking for GEOS lib in C:\Documents and Settings\kpeters Traceback (most recent call last): File setup.py, line 80, in module geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()] File C:\Python25\lib\ntpath.py, line 90, in join assert len(path) 0 TypeError: object of type 'NoneType' has no len() I hope no one else has this pain when upgrading. Regards, Kurt Original Message Follows From: John Hunter [EMAIL PROTECTED] To: KURT PETERS [EMAIL PROTECTED], Charlie Moad [EMAIL PROTECTED] CC: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 2 Jun 2008 11:01:48 -0500 On Mon, Jun 2, 2008 at 10:41 AM, KURT PETERS [EMAIL PROTECTED] wrote: File C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtk.py, line 6, in module import gobject ImportError: No module named gobject This is a problem with our installer since the default backend we have set is GTKAgg (we usually set it to GTKAgg). Fortunately, it is relatively easy for you to fix:. Edit site-packages/matplotlib/mpl-data/matplotlib and change the 'backend : GTKAgg' line to backend : TkAgg Charlie -- we will need to roll out a new binary builds which fix this ASAP because this will bite all the win32 users who don't have a custom rc, which is most of them I suspect. We'll also need to check the settings in the 91.3 release. My apologies for not testing this as you requested (I did test on linux though). You probably will also want to check the default backend for the OS X eggs too. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
On Mon, Jun 2, 2008 at 12:10 PM, KURT PETERS [EMAIL PROTECTED] wrote: Thanks, I made that change after an unfruitful attempt at installing gtk, which should have worked in my estimation. Now, at least I get by that original point. NOW basemaps won't work any more! When I run, I get: Traceback (most recent call last): File C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py, line 13, in module from matplotlib.toolkits.basemap import Basemap as Basemap ImportError: No module named toolkits.basemap One of the api changes is that the import line for basemap (and all matplotlib toolkits) is import mpl_toolkits.basemap rather than import matplotlib.toolkits.basemap I'm supposing that I NOW have to reinstall basemaps. The basemaps installer won't work for me any more though :-( This is that message I get when trying to reinstall basemaps: Traceback (most recent call last): File setup.py, line 80, in module geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()] File C:\Python25\lib\ntpath.py, line 90, in join assert len(path) 0 TypeError: object of type 'NoneType' has no len() This is an error that you will get if you are trying to install basemap yourself from source and the GEOS_DIR is set to None (Jeff, a more helpful error would be good here). I think we are still waiting on a binary installer for basemap. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
On Mon, Jun 2, 2008 at 12:28 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Kurt: As you discovered, you'll need basemap 0.99 to use with matplotlib 0.98.0. I only have a source tarball on the sf site now, and you apparently are looking for the windows binary installer. I hope to have that up sometime next week - problem is that the person whose PC I use to build it is on vacation now.Perhaps someone will step up and build a basemap windows installer before then, or I can talk you through how to build one yourself with MingW32. I've updated the newsbox on the website with a link to a brief text document including this info for basemap users. JDHr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
KURT PETERS wrote: Thanks, I made that change after an unfruitful attempt at installing gtk, which should have worked in my estimation. Now, at least I get by that original point. NOW basemaps won't work any more! When I run, I get: Kurt: As you discovered, you'll need basemap 0.99 to use with matplotlib 0.98.0. I only have a source tarball on the sf site now, and you apparently are looking for the windows binary installer. I hope to have that up sometime next week - problem is that the person whose PC I use to build it is on vacation now.Perhaps someone will step up and build a basemap windows installer before then, or I can talk you through how to build one yourself with MingW32. BTW; with the new basemap you'll have to use from mpl_toolkits.basemap import Basemap instead of the old from matplotlib.toolkits.basemap import Basemap -Jeff Traceback (most recent call last): File C:\Documents and Settings\kpeters\smworkspace\parsesmExcelFile\src\readParse\ExcelClass.py, line 13, in module from matplotlib.toolkits.basemap import Basemap as Basemap ImportError: No module named toolkits.basemap I'm supposing that I NOW have to reinstall basemaps. The basemaps installer won't work for me any more though :-( This is that message I get when trying to reinstall basemaps: C:\Python25\Lib\basemap-0.99c:\Python25\python.exe setup.py install checking for GEOS lib in /usr/local checking for GEOS lib in /sw checking for GEOS lib in /opt checking for GEOS lib in /opt/local checking for GEOS lib in C:\Documents and Settings\kpeters Traceback (most recent call last): File setup.py, line 80, in module geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()] File C:\Python25\lib\ntpath.py, line 90, in join assert len(path) 0 TypeError: object of type 'NoneType' has no len() I hope no one else has this pain when upgrading. Regards, Kurt Original Message Follows From: John Hunter [EMAIL PROTECTED] To: KURT PETERS [EMAIL PROTECTED], Charlie Moad [EMAIL PROTECTED] CC: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 2 Jun 2008 11:01:48 -0500 On Mon, Jun 2, 2008 at 10:41 AM, KURT PETERS [EMAIL PROTECTED] wrote: File C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtk.py, line 6, in module import gobject ImportError: No module named gobject This is a problem with our installer since the default backend we have set is GTKAgg (we usually set it to GTKAgg). Fortunately, it is relatively easy for you to fix:. Edit site-packages/matplotlib/mpl-data/matplotlib and change the 'backend : GTKAgg' line to backend : TkAgg Charlie -- we will need to roll out a new binary builds which fix this ASAP because this will bite all the win32 users who don't have a custom rc, which is most of them I suspect. We'll also need to check the settings in the 91.3 release. My apologies for not testing this as you requested (I did test on linux though). You probably will also want to check the default backend for the OS X eggs too. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : [EMAIL PROTECTED] 325 BroadwayOffice : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Make tick labels thicker
Hi, First of all, thanks to the developers for such a great Python plotting package. I use matplotlib more and more for my work. There is one thing, which I cannot get to work, namely to change the linewidth of the tick lines. I have tried ticklines = ax.get_xticklines() ticklines.extend(ax.get_yticklines()) for line in ticklines: line.set_linewidth(10) but nothing changes. I can change the color and other properties, but no matter what I set for the linewidth, it does not change. I have also tried to go in and ticklines[0]._linewidth = 10 but again no change. If I do a similar thing for the color ticklines[0]._color = 'b' the color is changed. I use matplotlib 0.91 on a RedHat EL 4 machine. Any ideas on how to solve this would be much appreciated. I have searched the mailing lists and the site, but could not find a solution (apologies if I should have missed it) Best regards, Berit Berit Hinnemann Research Scientist | Characterization Department | Research Development Haldor Topsøe A/S Nymøllevej 55 DK-2800 Kgs. Lyngby Phone: +45 4527 2130 (direct) Haldor Topsøe is market leading within heterogeneous catalysis and supplies catalysts and process design for oil refineries, chemical plants and the energy sector. The environment plays an important role in Topsøe's research and production, and through the introduction of new catalysts and technologies the company supports a more sustainable use of the world's resources. Annual revenues total DKK 3.5 billion generated by our 1,700 dedicated employees. For additional information please see our web site www.topsoe.com This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSOE (www.topsoe.com) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
KURT PETERS wrote: I am using 0.99. Kurt: Not really. You tried to install it but the install failed. I ended up copying the toolkits directory from my old installation of matplotlib to the new matplotlib directory and at least things seem to be working (although the HD seems to churn a lot more). Hmm. I wouldn't expect this to work - there were changes in the matplotlib API in version 0.98.0 that should break the old version of basemap. Let me test this a little more and I'll let you know how that is working for me (Windows could have started some other process in the background). Kurt OK. -Jeff Original Message Follows From: John Hunter [EMAIL PROTECTED] To: Jeff Whitaker [EMAIL PROTECTED] CC: KURT PETERS [EMAIL PROTECTED], [EMAIL PROTECTED], matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 2 Jun 2008 12:38:15 -0500 On Mon, Jun 2, 2008 at 12:28 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Kurt: As you discovered, you'll need basemap 0.99 to use with matplotlib 0.98.0. I only have a source tarball on the sf site now, and you apparently are looking for the windows binary installer. I hope to have that up sometime next week - problem is that the person whose PC I use to build it is on vacation now.Perhaps someone will step up and build a basemap windows installer before then, or I can talk you through how to build one yourself with MingW32. I've updated the newsbox on the website with a link to a brief text document including this info for basemap users. JDHr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : [EMAIL PROTECTED] 325 BroadwayOffice : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Make tick labels thicker
On Mon, Jun 2, 2008 at 12:32 PM, Berit Hinnemann [EMAIL PROTECTED] wrote: There is one thing, which I cannot get to work, namely to change the linewidth of the tick lines. I have tried ticklines = ax.get_xticklines() ticklines.extend(ax.get_yticklines()) for line in ticklines: line.set_linewidth(10) but nothing changes. I can change the color and other properties, but no matter what I set for the linewidth, it does not change. I have also tried to go in and This is the correct approach but it is a tricky one. In matplotlib, the ticks are *markers*. All Line2D objects support a line (solid, dashed, etc) and a marker (circle, square, tick). The tick linewidth is controlled by the markeredgewidth property. from pylab import figure, show fig = figure() ax = fig.add_subplot(111) ax.plot(range(10)) for line in ax.get_xticklines() + ax.get_yticklines(): line.set_markeredgewidth(10) show() BTW -- this is covered in the somewhat new artist api tutorial at http://matplotlib.sf.net/pycon/artist_api_tut.pdf - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] easy_install and eggs
I downloaded the egg for 0.98 from the matplotlib webpages, and I am trying to install it with easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg' (and everything under it) creating /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to /Library/ Python/2.5/site-packages Removing matplotlib 0.91.2 from easy-install.pth file Adding matplotlib 0.98.0 to easy-install.pth file Installed /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg Processing dependencies for matplotlib==0.98.0 Searching for matplotlib==0.98.0 Reading http://cheeseshop.python.org/pypi/matplotlib/ Reading http://cheeseshop.python.org/pypi/matplotlib/0.98.0 Reading http://matplotlib.sourceforge.net Reading http://cheeseshop.python.org/pypi/matplotlib/0.91.3 No local packages or download links found for matplotlib==0.98.0 error: Could not find suitable distribution for Requirement.parse('matplotlib==0.98.0') [skathi:~/Downloads] tgrav% Why is it trying to download the egg, when it is right there in the directory where I am running easy_install from. I do now see the point some people made on the python list about easy_install. This is an annoying behavior by the software. Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
John Hunter wrote: By the way, on windows you can edit the rc file in place (ie leave it in mpl-data). I need to update the instructions in that file -- they are out of date. please do, they indicate movement is required. This is weird: it is working on my end once I update my backend setting to TkAgg. i tried TkAgg as well but still no go. After running the 0.98 installer do you have pylab.py in site-packages? yep, its right there. very weird. does matplotlib fiddle with sys.path or some such? Make sure you remove all matplotlib traces from site-packages before installing. i did that and re-installed, same problem. Les - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Make tick labels thicker
On Mon, Jun 2, 2008 at 12:45 PM, John Hunter [EMAIL PROTECTED] wrote: for line in ax.get_xticklines() + ax.get_yticklines(): line.set_markeredgewidth(10) Correction ( I should have read the link myself first). The property you are probably interested is the markersize (marker size in points) though markeredgewidth may be useful too JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] easy_install and eggs
If you rename matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to matplotlib-0.98.0-py2.5.egg, easy_install will install it from the disk. I'm not sure why this happens. I've noticed lots of Mac OS X eggs with cruft at the end of the filename, which prevents their installation through easy_install. Renaming is all it takes to install them; still, it's annoying. Cheers V On Mon, Jun 2, 2008 at 7:43 PM, Tommy Grav [EMAIL PROTECTED] wrote: I downloaded the egg for 0.98 from the matplotlib webpages, and I am trying to install it with easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg' (and everything under it) creating /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to /Library/ Python/2.5/site-packages Removing matplotlib 0.91.2 from easy-install.pth file Adding matplotlib 0.98.0 to easy-install.pth file Installed /Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- macosx-10.3-fat.egg Processing dependencies for matplotlib==0.98.0 Searching for matplotlib==0.98.0 Reading http://cheeseshop.python.org/pypi/matplotlib/ Reading http://cheeseshop.python.org/pypi/matplotlib/0.98.0 Reading http://matplotlib.sourceforge.net Reading http://cheeseshop.python.org/pypi/matplotlib/0.91.3 No local packages or download links found for matplotlib==0.98.0 error: Could not find suitable distribution for Requirement.parse('matplotlib==0.98.0') [skathi:~/Downloads] tgrav% Why is it trying to download the egg, when it is right there in the directory where I am running easy_install from. I do now see the point some people made on the python list about easy_install. This is an annoying behavior by the software. Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
I am using 0.99. I ended up copying the toolkits directory from my old installation of matplotlib to the new matplotlib directory and at least things seem to be working (although the HD seems to churn a lot more). Let me test this a little more and I'll let you know how that is working for me (Windows could have started some other process in the background). Kurt Original Message Follows From: John Hunter [EMAIL PROTECTED] To: Jeff Whitaker [EMAIL PROTECTED] CC: KURT PETERS [EMAIL PROTECTED], [EMAIL PROTECTED], matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 2 Jun 2008 12:38:15 -0500 On Mon, Jun 2, 2008 at 12:28 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Kurt: As you discovered, you'll need basemap 0.99 to use with matplotlib 0.98.0. I only have a source tarball on the sf site now, and you apparently are looking for the windows binary installer. I hope to have that up sometime next week - problem is that the person whose PC I use to build it is on vacation now.Perhaps someone will step up and build a basemap windows installer before then, or I can talk you through how to build one yourself with MingW32. I've updated the newsbox on the website with a link to a brief text document including this info for basemap users. JDHr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
Unfortunately, I think someone else was on the maillist with a similar problem, and perhaps our two mails got confused. I have always been using 0.99 as far as I know. It got nuked when I deleted the old matplotlib. I wonder why it couldn't find geos the second time around? Once again, though, I'll let you know how things go. It's a good idea to pull the toolkit out of the matplotlib directory to avoid this very problem. I'll give that a try, by direct copying and changing my code. Probably a lot of example code might need changing as well. Regards, Kurt Original Message Follows From: Jeff Whitaker [EMAIL PROTECTED] To: KURT PETERS [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED], matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 02 Jun 2008 11:51:43 -0600 KURT PETERS wrote: I am using 0.99. Kurt: Not really. You tried to install it but the install failed. I ended up copying the toolkits directory from my old installation of matplotlib to the new matplotlib directory and at least things seem to be working (although the HD seems to churn a lot more). Hmm. I wouldn't expect this to work - there were changes in the matplotlib API in version 0.98.0 that should break the old version of basemap. Let me test this a little more and I'll let you know how that is working for me (Windows could have started some other process in the background). Kurt OK. -Jeff Original Message Follows From: John Hunter [EMAIL PROTECTED] To: Jeff Whitaker [EMAIL PROTECTED] CC: KURT PETERS [EMAIL PROTECTED], [EMAIL PROTECTED], matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error Date: Mon, 2 Jun 2008 12:38:15 -0500 On Mon, Jun 2, 2008 at 12:28 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Kurt: As you discovered, you'll need basemap 0.99 to use with matplotlib 0.98.0. I only have a source tarball on the sf site now, and you apparently are looking for the windows binary installer. I hope to have that up sometime next week - problem is that the person whose PC I use to build it is on vacation now.Perhaps someone will step up and build a basemap windows installer before then, or I can talk you through how to build one yourself with MingW32. I've updated the newsbox on the website with a link to a brief text document including this info for basemap users. JDHr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : [EMAIL PROTECTED] 325 BroadwayOffice : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Update to Matplotlib and Numpy producing error
On Mon, Jun 2, 2008 at 4:32 PM, Charlie Moad [EMAIL PROTECTED] wrote: I am pretty sure setupext.py used to have these defaults coded in, but something must have changed. I haven't had to check default backends in a long time. I'll get new builds up asap. Darren has added a setup.cfg to configure the builds external to setup.py. You'll probably want to use it to configure the default backend. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users