sorry, problem fixed... I was using linestyle='--', linewidth='7'
instead of linestyle='--', linewidth=7 embarrassing ... But matplotlib would not complain when exporting to pdf, nor to png etc... only ps/eps thanks 2009/3/23 Michael Droettboom <md...@stsci.edu>: > Try switching to the Ps backend by putting: > > import matplotlib > matplotlib.use("ps") > > at the top of your script. That will take gtk and its popup windows out of > the equation. > > After doing that, you should get a traceback at the terminal that should > help narrow this down. At this point we can only guess, without a line > number. > > Can you also provide a minimal script that causes this error? I'm > particularly puzzled by the difference in output between PDF and PS. > > Cheers, > Mike > > Pau wrote: >> >> Hello, >> >> using 0.98.5.2 under OpenBSD -current >> >> I have made a plot and, when I try to save it as eps/ps, I get the >> error "float argument required" in a pop-up window, whilst the >> terminal shows this error message: >> >> >> /usr/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py:1054: >> GtkWarning: Unable to find default local directory monitor type >> if self.run() != int(gtk.RESPONSE_OK): >> >> I can save it as pdf, but the quality is not what I want. The curves >> do not have the thickness I gave them. >> >> I reproduced the same running it under Fedora 10. >> >> I have googled and yahooed. Found nothing. >> >> It looks as if the some function was expecting a decimal-point number >> but got something else. >> >> I can send the .py and data, if you wish. >> >> Thanks, >> >> Pau >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users