Re: cgImage abscissa values in axis feature [message #88276 is a reply to message #88275] |
Mon, 07 April 2014 09:10   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Petros Syntelis writes:
> I've downloaded the whole library and replaced the old one on my computer. My computer runs Mac OS X 10.8.5. I've restarted idl and the whole computer also!
>
> The funny thing is that almost every time i run the cgimage command i get a different axis color.
> Also, If i run create a cgdispaly window it resolves partly the problem
> So, this code:
> !p.multi=[0,5,5]
> cgdisplay, 600,400
> for i=0,24 do cgimage, im,xv=x,yv=x,/axis
> !p.multi=0
>
> creates a series of plots where the first 4 plots have black axis and the rest have white axis.
>
> This code, on the other hand,
> !p.multi=[0,5,5]
> for i=0,24 do cgimage, im,xv=x,yv=x,/axis
> !p.multi=0
>
> creates axis with all sorts of different colors. And the colors change randomly every time i run the for loop!
> Also, when i tried to take a snapshot
> snap=cgSnapshot(file='snaphot.png')
> The resulting png file have colored vertical bars, like an old television that can't get signal..
>
> What have i done??
Oh, my gosh! Bought the wrong computer, it sounds like. ;-)
Can you start IDL up fresh and give me the results of this command:
IDL> Help, /Device
Also, what version of IDL is this?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|