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' ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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