octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color output for documentation eps images


From: Ben Abbott
Subject: Re: Color output for documentation eps images
Date: Fri, 4 Dec 2009 09:22:52 -0500

On Dec 3, 2009, at 9:57 PM, Rik wrote:

>> 
>> Before I integrated the result with print.m, I'd like some feedback on the 
>> attached printopt.m.
>> 
> Looks good.  Only comment is that for compatibility Matlab uses '-dps2'
> rather than '-dps'
> 
> --Rik
> 

I've made the needed changes to print.m and did a little testing. Although I 
plan to review these changes a bit more, I thought having others look over the 
current implementation would be a good idea.

To set the default device to color encapsulated postscript, level 2, type ...

        printopt ("-dev", "-depsc2")
        print fig.eps

If a device is explicitly given, by the print command, then it supersedes 
printopt. For example, the commands below will produce a color level 1 
postscript output.

        printopt ("-dev", "-depsc2")
        print -dpsc fig.ps

and the commands below produce a greyscale level2 postscript output.

        printopt ("-dev", "-depsc2")
        print -dps2 fig.ps

Ben

Attachment: changeset.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]