How to save figures in black and white

Hi,

    I am using matplotlib for all my figure needs in academic papers,
but I would like to convert some of my figures (generally exported ni
eps and pdf) in black and white. I tried using colormaps, but when using
several axes, I can't convert them all in one shot. Is there any way to
say (in say savefig) to use a given colormap (gray levels in my case)
for the whole figure ? Or is colormap not the way to go ?

thanks,

David

Have you tried setting the default colormap in your rc settings?

···

On Saturday 02 August 2008 4:56:06 am David Cournapeau wrote:

Hi,

    I am using matplotlib for all my figure needs in academic papers,
but I would like to convert some of my figures (generally exported ni
eps and pdf) in black and white. I tried using colormaps, but when using
several axes, I can't convert them all in one shot. Is there any way to
say (in say savefig) to use a given colormap (gray levels in my case)
for the whole figure ? Or is colormap not the way to go ?