comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: strange behaviour of color property in function graphics
items: Re: strange behaviour of color property in function graphics

strange behaviour of color property in function graphics
type: item
description: Hi, I've just came across this: This is ok: IDL> i = image(/test) IDL> t = text(0.5,0.5,'test', 'r', /norm) This gives an error: IDL> i = image(/test) IDL> t = text(0.5,0.5,'test', /norm, color='r') % TEXT: <LONG Array[1]>. % Execution halted at: $MAIN$ I think that this is a bug, because: 1) it works for the plot function: p = plot(/test, color='r') 2) the description of the color property in plot() and text() is the same (set the property to a string or RGB vector: http://www.exelisvis.com/docs/FormattingSymsAndLines.html) Running the debug option in text, I get the following error: % ITEXT: <LONG Array[1]>. % Execution halted at: TEXT 119 C:\Program Files\Exelis\IDL84\lib\graphics\text.pro Something strange is going on with the color variable being, as the error says, a an array and not a scalar. cheers, Helder
creator: Helder Marchetto
date: 2014-10-30T11:35:06-00:00

Re: strange behaviour of color property in function graphics
type: item
description: Hi again Helder, On 30.10.2014 12:35, Helder wrote: > This gives an error: > IDL> i = image(/test) > IDL> t = text(0.5,0.5,'test', /norm, color='r') > % TEXT: <LONG Array[1]>. > % Execution halted at: $MAIN$ No error in IDL 8.3! There seems to be a bunch of changes in IDL8.4 ... Fabien
creator: Fabzi
date: 2014-10-30T12:08:23-00:00

Re: strange behaviour of color property in function graphics
type: item
description: On Thursday, October 30, 2014 1:08:26 PM UTC+1, Fabien wrote: > Hi again Helder, > > On 30.10.2014 12:35, Helder wrote: >> This gives an error: >> IDL> i = image(/test) >> IDL> t = text(0.5,0.5,'test', /norm, color='r') >> % TEXT: <LONG Array[1]>. >> % Execution halted at: $MAIN$ > > No error in IDL 8.3! > > There seems to be a bunch of changes in IDL8.4 ... > > Fabien Yeah, and we're chasing them down... h
creator: Helder Marchetto
date: 2014-10-30T12:20:27-00:00

Re: strange behaviour of color property in function graphics
type: item
description: Helder writes: > and we're chasing them down... At least today is starting off with a smile. :-) 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.")
creator: David Fanning
date: 2014-10-30T12:27:23-00:00