Dan
Dan

Reputation: 12675

Printing matlab figures in color

When I try to print a matlab figure from red hat 5, it always comes out greyscale, even when I print to file. I can get around this by saving the plot as a PNG and then printing that, but I'd like to be able to print matlab plots directly.

I've tried selecting "color" in the print dialog box and in print preview, but the images still come out greyscale.

How can I get matlab to print in color?

Upvotes: 0

Views: 1473

Answers (1)

Dan
Dan

Reputation: 12675

You need to edit the printopt.m file on your system. Specifically, you need to add the line

dev = '-dpsc2';

This sets the printer driver to "color postscript", as opposed to the default printer driver for RHEL which is greyscale postscript.

See this page from the matlab documentation.

Upvotes: 1

Related Questions