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

Home » Public Forums » archive » cgImage abscissa values in axis feature
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: cgImage abscissa values in axis feature [message #88275 is a reply to message #88274] Mon, 07 April 2014 09:06 Go to previous messageGo to previous message
Petros Syntelis is currently offline  Petros Syntelis
Messages: 32
Registered: June 2013
Member
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??


On Monday, April 7, 2014 2:55:53 PM UTC+1, David Fanning wrote:
> Petros Syntelis writes:
>
>
>
>> Hey David, I think there is something funky going on with the axis color. I did
>
>>
>
>> loadct,0
>
>> im=cgdemodata(4)
>
>> x=findgen(256)
>
>> cgimage, im,/axis
>
>>
>
>> and
>
>>
>
>> cgimage, im,/axis, xv=x,yv=v
>
>>
>
>> and in both cases the color of the axis is either white or something different.
>
>
>
> Yeah, don't know. I don't see anything funky. Did you update your Coyote
>
> Library or just cgImage? What kind of computer?
>
>
>
> 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI/IDL vegetation identification
Next Topic: installation without a CD

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

Current Time: Wed Oct 08 18:20:44 PDT 2025

Total time taken to generate the page: 0.00281 seconds