Page 1 of 1

setLayerLabel Color

Posted: Fri Feb 26, 2016 5:20 pm
by joleenf

Is the setLayerLabel(color='Yellow') actually working in McIDAS-V 1.6? It does not seem to be working for me. If I use the jython shell, and type

Code: Select all

data = loadADDEImage(server='', dataset='RTIMAGES', descriptor='GE-IR', size='ALL')
layer = panel[0].createLayer('Image Display', data)

layer.setLayerLabel('Test', color='green')


'Test' is saving as white, my default...

If I then open the layer properties, I see that the color should have been green, which does get applied after the okay is selected.

Version: 1.6 beta1 Build-date: 2016-02-26 10:30


Re: setLayerLabel Color

Posted: Fri Feb 26, 2016 5:38 pm
by bobc
Hi Joleen -

Thanks for pointing this out, it is a definite bug. I wrote this up as Inquiry 2279.

As a workaround, for now you can use setLayerLabelColor(). For example:

Code: Select all


Thanks again -
Bob Carp

Re: setLayerLabel Color

Posted: Fri May 20, 2016 2:48 pm
by bobc
Hi Joleen -

I just wanted to follow up with you on this and let you know that the color keyword of setLayerLabel is working in today's nightly. I've tested it across all platforms, but if you give it a look and see any problems please let me know.

Thanks -