[Matplotlib-users] sensible tick labels for log scale?
I'm wondering if there is a way of automating tick labeling on log-scale axes, so that labels do not overlap. Specifically, when the values get large, they overlap which makes the labels unreadable. I would expect them to automatically get more sparse with the axis value, as they do when you generate such plots in R, for example. Thanks in advance, cf -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] inconsistent spacing in histograms
I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365 http://cl.ly/c7cb20b567722928ac3c Is there a way of normalizing this, and better, can the default behavior result in something more consistent (i.e. publication-quality)? Thanks, Chris -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] inconsistent spacing in histograms
On Oct 22, 2010, at 9:13 AM, Ryan May wrote: On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck statist...@me.com wrote: I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365 http://cl.ly/c7cb20b567722928ac3c Is there a way of normalizing this, and better, can the default behavior result in something more consistent (i.e. publication-quality)? That looks like some bizarre rounding/truncation or something like it. Can you post an example (can just use made up data) that reproduces this? I've not seen this before, so I sense it's due to the specific data types you're passing in. Here is a very simple example. The data are just a list of integers: http://dl.dropbox.com/u/233041/histexample.py and it results in an odd choice of intervals. (array([863, 775, 0, 271, 0, 67, 23, 0, 0, 1]), array([ 0. , 0.6, 1.2, 1.8, 2.4, 3. , 3.6, 4.2, 4.8, 5.4, 6. ]), a list of 10 Patch objects) If there are only 7 possible values of the data, which are evenly-spaced, it should probably not go in and create more than 6 bins as the default behavior. I know I can specify bins by hand, but when automated it would be nice to have a more sensible default. Thanks, cf -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] matplotlib._png failure on 64-bit OSX
I have built matplotlib from svn on OSX 10.6, using the make.osx script that is included with the source, except with the 32-bit build flags removed. The resulting module fails on import, however, with the following: In [1]: from pylab import * Traceback (most recent call last): File ipython console, line 1, in module File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/pylab.py, line 1, in module from matplotlib.pylab import * File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/pylab.py, line 206, in module from matplotlib import mpl # pulls in most modules File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/mpl.py, line 2, in module from matplotlib import axis File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/axis.py, line 14, in module import matplotlib.text as mtext File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/text.py, line 30, in module from matplotlib.backend_bases import RendererBase File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/backend_bases.py, line 40, in module import matplotlib.textpath as textpath File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/textpath.py, line 9, in module from matplotlib.mathtext import MathTextParser File /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/mathtext.py, line 52, in module import matplotlib._png as _png ImportError: dlopen(/Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/_png.so, 2): Symbol not found: _png_create_info_struct Referenced from: /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/_png.so Expected in: flat namespace in /Library/Python/2.6/site-packages/matplotlib-1.0.svn_r8034-py2.6-macosx-10.6-universal.egg/matplotlib/_png.so This seems like this is related to 32-bit code lurking somewhere, but I'm not sure where. I am surely using 64-bit python. Any ideas or solutions are appreciated. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] gtk backend failure on systems without gtk
On some OSX systems, pylab is failing on importing pylab because of lack of GTK. This appears to be a bug; if the system doesnt have gtk, it should simply not import that backend to begin with. from matplotlib import pylab Traceback (most recent call last): File stdin, line 1, in module File /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5- macosx-10.5-i386.egg/matplotlib/pylab.py, line 292, in module from matplotlib.pyplot import * File /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5- macosx-10.5-i386.egg/matplotlib/pyplot.py, line 39, in module new_figure_manager, draw_if_interactive, show = pylab_setup() File /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5- macosx-10.5-i386.egg/matplotlib/backends/__init__.py, line 24, in pylab_setup globals(),locals(),[backend_name]) File /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5- macosx-10.5-i386.egg/matplotlib/backends/backend_gtkagg.py, line 10, in module from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5- macosx-10.5-i386.egg/matplotlib/backends/backend_gtk.py, line 6, in module import gobject ImportError: No module named gobject - 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] Static linking problem on matplotlib eggs
OK, I managed to build with the setupext.py list empty as you specified. However, for some reason, the resulting matplotlib egg *still* looks for dynamic libraries in /usr/local: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found This is pretty bizarre. On 12/01/2008, at 12:42 PM, Charlie Moad wrote: I just had to rebuild the OSX binary because a similar reason. I forgot to change the basedir['darwin'] entry in setupext.py. Around line 50. Change: 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/ local', '/usr', '/sw', '/usr/X11R6'], To: 'darwin' : [], This will ensure you don't pick up shared libraries over the static ones since they are preferred by gcc. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Static linking problem on matplotlib eggs
Thanks Charlie, I've done this, but for some reason, its still looking for things in / usr/local: In file included from src/ft2font.h:11, from src/ft2font.cpp:2: /usr/local/include/ft2build.h:56:38: error: freetype/config/ ftheader.h: No such file or directory cf On 12/01/2008, at 12:42 PM, Charlie Moad wrote: I just had to rebuild the OSX binary because a similar reason. I forgot to change the basedir['darwin'] entry in setupext.py. Around line 50. Change: 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/ local', '/usr', '/sw', '/usr/X11R6'], To: 'darwin' : [], This will ensure you don't pick up shared libraries over the static ones since they are preferred by gcc. - Charlie On Jan 12, 2008 12:04 PM, Chris [EMAIL PROTECTED] wrote: I'm trying to build some matplotlib eggs to bundle and distribute with some other python packages. So, I am doing my best to statically link to libraries like libpng, libfreetype, etc. that users may not have installed. I am building using the following: python setupegg.py config -L../staticlibs build bdist_egg where ../staticlibs contains the libraries that I am statically linking. Unfortunately, users are still getting errors such as the following: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found Anyone have a clue what I am not doing properly? Thanks, Chris - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Bus error on multiple hist plots
On Jul 14, 2007, at 3:43 PM, David Warde-Farley wrote: Hi Chris, This just came up I think a day or so ago. Are you using TkAgg as your backend, I am using TkAgg and are you closing the plot window in between the two histograms? Yes. Try updating from svn, Andrew just fixed a bug. Will try, thanks. -- Christopher Fonnesbeck + Atlanta, GA + fonnesbeck at mac dot com + Contact me on AOL IM using email address - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] freetypelib problem scipy superpack matplotlib
On 5/4/07, Christopher Barker [EMAIL PROTECTED] wrote: Samuel M. Smith wrote: I did not have this problem with the matplotlib on http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007-02-20.dmg That one was probably built with a statically linked freetype, as the one Apple provides doesn't work with MPL. Strange. I have libfreetype.a in a staticlibs directory that I link to when building these things. I will try again. cf - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problems building mpkg installers for matplotlib
I am building matplotlib on an Intel Mac, and trying to use py2app to generate mpkg files. Everything seems to go well, except that when I go to install the package, it says that there is nothing to install. The package seems to be there, but is grayed out with Skip in the action column: http://trichech.us/images/mpkg.png Anyone else encounter this problem? Thanks, -- Christopher Fonnesbeck + Atlanta, GA + fonnesbeck at mac.com + Contact me on AOL IM using email address - 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=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users