On 12-02-07 08:40 AM, Michael Droettboom wrote: > On 02/07/2012 10:48 AM, Benjamin Root wrote: >> >> >> On Tue, Feb 7, 2012 at 8:33 AM, Fabien Lafont >> <lafont.fab...@gmail.com >> <mailto:lafont.fab...@gmail.com>> wrote: >> >> Is it possible to set the extension .pdf as defaut when I save an >> image using the matplotlib bar. My coworkers are always saving the >> image in png and it's really ugly! >> >> Thx, >> >> Fab >> >> >> Interesting request. Looking through the backends, it appears that only the >> Cairo backend currently supports a configurable rcParam for the default >> filetype ('cairo.format'). All backends implement a "get_default_filetype()" >> method for their canvases, but most of them have that default hard-coded as >> "png". This really only makes sense for backends like agg, pdf, ps and such. >> >> Devs - Maybe we should consider fixing this for the non-fileformat specific >> backends? Do we want an rcParam for each backend? Or a single rcParam for >> default filetypes and deprecate 'cairo.format'? > > I would definitely lean toward the latter -- unify it under a single rcParam. > > Mike
Sorry for posting to an old thread, but I just submitted a pull request that implements this, AFAICT: https://github.com/matplotlib/matplotlib/pull/907 Martin ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users