-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/14/12 5:29 PM, Sean Lake wrote: > Hello all, > > I'm experiencing trouble with Matplotlib. Here is a short script > that reproduces the error followed by the error. > matplotlib-py27-1.0.1-1 matplotlib-py26-1.0.1-1 python26-2.6.7-3 > python27-2.7.2-5 > > fink --version Package manager version: 0.32.2 Distribution > version: selfupdate-rsync Tue Feb 14 14:23:59 2012, 10.6, x86_64 > Trees: local/main stable/main stable/crypto unstable/main > unstable/crypto > > #!/usr/bin/env /sw/bin/python2.7 -i > > ofmt = "pdf" > > import sys #Clear scisoft out from the path search tree i = 0 > ssbase = "/usr/local/scisoft" while i < len(sys.path): item = > sys.path[i] if ( item != "" and len(item) >= len(ssbase) and > item[:len(ssbase)] == ssbase ): del(sys.path[i]) else: i += 1 > > del item, ssbase, i > > from numpy import * import scipy as sp > > import matplotlib #matplotlib.use("GTKAgg") matplotlib.use("Agg") > > import matplotlib.axes as mpax import matplotlib.ticker as pltck > import matplotlib.figure as pltfig > > import matplotlib.pyplot as plt plt.close("all") plt.figure( 1 ) > plt.plot( [ x for x in range(10)], [x for x in range(10)] ) > plt.savefig("asdf.pdf", "pdf") > > Error: Traceback (most recent call last): File "<stdin>", line 1, > in <module> File > "/sw/lib/python2.6/site-packages/matplotlib/pyplot.py", line 363, > in savefig return fig.savefig(*args, **kwargs) File > "/sw/lib/python2.6/site-packages/matplotlib/figure.py", line 1084, > in savefig self.canvas.print_figure(*args, **kwargs) TypeError: > print_figure() got multiple values for keyword argument 'dpi'
I can reproduce the failure using Sean's script. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk86938ACgkQB8UpO3rKjQ/mnQCePh03Hir66wu4R5X87/rE3bNL lV0An2hpDZoWzZp8X/sZ6W7xEEAQPqlc =iA22 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users