Newsgroups: comp.lang.idl-pvwave
From: "Phillip M. Bitzer" <pm.bit...@uah.edu>
Date: Wed, 07 Nov 2012 10:22:52 -0600
Local: Wed, Nov 7 2012 11:22 am
Subject: Re: cgcolorbar problem in postscript
Like David said, this is not a problem with the file or cgColorbar, but
I don't think this is a "problem" exactly with Preview either - it seems to be an issue with aliasing. Consider the program below, which is similar to yours (note I don't load in a color bar, rather I specify the RGB palette). After producing the eps file, open it in Preview. You'll probably see the graduated colors, which I think is what you are reporting. If you go to Preferences->PDF, and toggle the Check box for "Smooth text For reference, here's what I see:
https://www.dropbox.com/s/2b2k8jj1taifpk0/colorbar_smooth.png
PRO pmbtest, Do_Ps = do_ps
colors = [ 'hot pink', 'indian red', 'dark green', 'green', $
n_color = N_ELEMENTS(colors)
do_ps = KEYWORD_SET(do_ps)
rgb = cgCOLOR(colors, /TRIPLE)
;display the colorbar
IF do_ps THEN PS_END
END
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||