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

Home » Public Forums » archive » Two NewGraphics weirdnesses
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: Two NewGraphics weirdnesses [message #88922 is a reply to message #88913] Thu, 03 July 2014 13:53 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi Alx,

Thanks for your answer.

It is still really not ok that an IDL built-in routine messes around
with your variables:

IDL> print, cols
BLUE PURPLE RED ORANGE
IDL> p2t = text([0.3,0.3,0.3, 0.3],[0.8,0.77,0.72,0.69], cols,$
FONT_COLOR=cols)
IDL> print, cols
0 0 0
0 0 0
0 0 0
0 0 0

Cheers,

Fabien

On 03.07.2014 14:11, Fabien wrote:
> Folks,
>
> do FONT_COLOR and SYM_COLOR accept arrays as input?
>
> And, regardless to the answer, can someone explain this to me:
>
>
> ; This creates the correct filled points but the text colors are erratic
> p1 = plot(INDGEN(10))
> p1t = text([0.3,0.3,0.3, 0.3],[0.8,0.77,0.72,0.69], ['BLUE', 'PURPLE',$
> 'RED', 'ORANGE'], FONT_COLOR=['BLUE', 'PURPLE', 'RED', 'ORANGE'])
> p1s = symbol([0.27,0.27,0.27, 0.27],[0.8,0.77,0.72,0.69], 'circle',
> /SYM_FILLED, SYM_COLOR=['BLUE', 'PURPLE', 'RED', 'ORANGE'])
>
> ; This is just chaos
> cols = ['BLUE', 'PURPLE', 'RED', 'ORANGE']
> p2 = plot(INDGEN(10))
> p2t = text([0.3,0.3,0.3, 0.3],[0.8,0.77,0.72,0.69], cols, FONT_COLOR=cols)
> p2s = symbol([0.27,0.27,0.27, 0.27],[0.8,0.77,0.72,0.69], 'circle',
> /SYM_FILLED, SYM_COLOR=cols)
>
>
> Thanks for shedding light on this for me!
>
>
> Fabien
>
>
> IDL> print, !VERSION
> { x86_64 linux unix linux 8.3 Nov 15 2013 64 64}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can IDL interact with a web service client?
Next Topic: Fredholm integral equation

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

Current Time: Wed Oct 08 15:28:32 PDT 2025

Total time taken to generate the page: 0.00384 seconds