From: Gideon S. <si...@ma...> - 2008-09-26 23:11:50
|
Is there anything akin to this MATLAB script: http://www.mathworks.com/company/newsletters/digest/june00/export/ available for mpl? or some simple set of commands that will accomplish the same task? -gideon |
From: Darren D. <dsd...@gm...> - 2008-09-27 14:01:39
|
On Friday 26 September 2008 18:49:25 Gideon Simpson wrote: > Is there anything akin to this MATLAB script: > > http://www.mathworks.com/company/newsletters/digest/june00/export/ > > available for mpl? or some simple set of commands that will > accomplish the same task? matplotlib produces publication quality output, and I think you can reproduce all the features of this script by simply modifying your rc parameters. Your on-screen results should look like your eps output, most importantly you need to set your figure.dpi according to your display size. Aside from that, have a look at the default matplotlibrc file for the many options you can customize. Darren |
From: Marius 't H. <M.t...@ai...> - 2008-09-27 09:43:36
|
Yes: savefig On Fri, 2008-09-26 at 18:49 -0400, Gideon Simpson wrote: > Is there anything akin to this MATLAB script: > > http://www.mathworks.com/company/newsletters/digest/june00/export/ > > available for mpl? or some simple set of commands that will > accomplish the same task? > -gideon > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Gideon S. <si...@ma...> - 2008-09-28 15:01:04
|
Thanks, but this wasn't quite what I had in mind. the exportfig m - file trims the size of the white bounding box on the figure, in addition to saving the image. Is there an easy way to do that with matplotlib? -gideon On Sep 27, 2008, at 5:11 AM, Marius 't Hart wrote: > Yes: > savefig > > On Fri, 2008-09-26 at 18:49 -0400, Gideon Simpson wrote: >> Is there anything akin to this MATLAB script: >> >> http://www.mathworks.com/company/newsletters/digest/june00/export/ >> >> available for mpl? or some simple set of commands that will >> accomplish the same task? >> -gideon >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Eric F. <ef...@ha...> - 2008-09-27 18:04:42
|
Darren Dale wrote: > On Friday 26 September 2008 18:49:25 Gideon Simpson wrote: >> Is there anything akin to this MATLAB script: >> >> http://www.mathworks.com/company/newsletters/digest/june00/export/ >> >> available for mpl? or some simple set of commands that will >> accomplish the same task? > > matplotlib produces publication quality output, and I think you can reproduce > all the features of this script by simply modifying your rc parameters. Your > on-screen results should look like your eps output, most importantly you need > to set your figure.dpi according to your display size. Aside from that, have a > look at the default matplotlibrc file for the many options you can customize. Good answer, but there may be one exception. The Matlab function description indicates that it can produce eps files with the cmyk color space, which is indeed something that publishers tend to want, and something that we don't do. Whether Matlab does it well, and whether with some reasonable modification to the mpl ps backend we could do at least as well, I don't know. Eric > > Darren |
From: John H. <jd...@gm...> - 2008-10-04 17:48:19
|
On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <ef...@ha...> wrote: > Good answer, but there may be one exception. The Matlab function > description indicates that it can produce eps files with the cmyk color > space, which is indeed something that publishers tend to want, and > something that we don't do. Whether Matlab does it well, and whether > with some reasonable modification to the mpl ps backend we could do at > least as well, I don't know. This is certainly something that would be nice to have. There was some recent work on agg to support different colorspaces, I think CMYK was among them, but it hasn't yet been contributed into the mainline as far as I know. It would take quite a bit of work for us to support a generic colorspace model, but it would be a nice feature.... JDH |
From: <an...@tn...> - 2008-09-29 04:08:12
|
> Thanks, but this wasn't quite what I had in mind. the exportfig m - > file trims the size of the white bounding box on the figure, in > addition to saving the image. Is there an easy way to do that with > matplotlib? If you produce pdf, pdfcrop is neat. Best, Martin -- Martin Lüthi an...@tn... |
From: Eric F. <ef...@ha...> - 2008-10-04 23:55:07
|
John Hunter wrote: > On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <ef...@ha...> wrote: > >> Good answer, but there may be one exception. The Matlab function >> description indicates that it can produce eps files with the cmyk color >> space, which is indeed something that publishers tend to want, and >> something that we don't do. Whether Matlab does it well, and whether >> with some reasonable modification to the mpl ps backend we could do at >> least as well, I don't know. > > This is certainly something that would be nice to have. There was > some recent work on agg to support different colorspaces, I think CMYK > was among them, but it hasn't yet been contributed into the mainline > as far as I know. It would take quite a bit of work for us to support > a generic colorspace model, but it would be a nice feature.... John, Is it still true that we will not be able to take advantage of any agg improvements because of the agg license change? Eric |