|
From: Petr M. <mi...@ph...> - 2009-01-26 18:17:19
|
I have patch gnuplot 4.2 and cvs so that it keeps the custom colour map
intact when printing to "postscript monochrome".
Now I propose that Octave is passing the colormap() through a "rgb2gray()"
function before printing to any monochromatic device (probably only "-dps"
and "-deps") so that the image will look the same whatever the drawing
backend is selected.
> >I think that Octave could pass the custom colormap() through a "rgb2gray()"
> >function before printing to any monochromatic device (not just monochromatic
> >postscript). Then the plots
> > print('mono.ps', '-dps')
> > print('color.ps', '-dpsc')
> >will be same as in Matlab.
>
> Unfortunately, 'mono.ps' and 'color.ps' inverted images (using the example
> below which accompanyied your patch).
>
> a=1./hilb(42);
> colormap(flipud(gray));
> imagesc(a); colorbar
> print('mono.ps', '-dps');
> print('color.ps', '-dpsc');
---
PM
|