formatting figures for publciation

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

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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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

···

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?

Darren Dale 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

···

On Friday 26 September 2008 18:49:25 Gideon Simpson wrote:

Darren

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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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

···

On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <efiring@...202...> 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.

John Hunter wrote:

···

On Sat, Sep 27, 2008 at 1:04 PM, Eric Firing <efiring@...202...> 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