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:
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
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.