comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Red and Green Colors Swapped when Printing from Mac
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Red and Green Colors Swapped when Printing from Mac [message #76415 is a reply to message #76414] Fri, 03 June 2011 10:10 Go to previous messageGo to previous message
Mostafa is currently offline  Mostafa
Messages: 3
Registered: June 2011
Junior Member
On Jun 3, 10:44 am, Matt Haffner <matt.haff...@gmail.com> wrote:
>
> I've only used Mac IDL and have never seen this in DG or NG. Maybe the
> original poster has some code that shows the problem?
>
> - Matt

Certainly. I have used the sample code in the help page for CONTOUR
function and added a colorbar and print statement to it:

file = FILEPATH('convec.dat', SUBDIR=['examples', 'data'])
z = READ_BINARY(file,DATA_DIMS=[248,248])
index = [30,60,90,120,150,220,255]
c = CONTOUR(z, /FILL, ASPECT_RATIO=1, RGB_TABLE=39, RGB_INDICES=index,
C_VALUE=index)
b = COLORBAR(TARGET=c)
c.PRINT

On the graphics window, the plot is filled with blue colors in the
outer contours and red/orange in the inner. The printout shows the
outer contours in red colors and the inner in blue. However, the
colorbar prints correctly.

I hope it is not just my Mac nor me :)

Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Red and Green Colors Swapped when Printing from Mac
Next Topic: DICOM image query crashes IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 09:03:00 PDT 2025

Total time taken to generate the page: 1.04016 seconds