Page 1 of 1

annotate background color

Posted: Mon Apr 04, 2016 2:29 pm
by joleenf
Would it be possible to add a background color keyword for the annotate command in the scripting API?

Thanks,
Joleen

Re: annotate background color

Posted: Mon Apr 04, 2016 5:03 pm
by bobc
Hi Joleen -

I wrote up adding this functionality to annotate as Inquiry 2309. It's possible to add a background color to text added through the Drawing Control Widget in the GUI, so I agree that this would be good to add to scripting.

Thanks for requesting this -
Bob Carp

Re: annotate background color

Posted: Mon Oct 17, 2016 6:48 pm
by bobc
Hi Joleen -

In today's nightly, there's a new keyword in annotate() called 'bgColor'. It is used in the same way as the 'color' keyword. For example, you could run:

Code: Select all

activeDisplay().annotate('TEST',line=200,element=300,color='black',bgColor='white',size=60)

And this creates a display of:
annotate.jpg

If you give this bgColor keyword a try and run into any problems, please let us know.

Thanks -
Bob

Re: annotate background color

Posted: Tue Oct 18, 2016 4:13 pm
by joleenf
Thanks Bob. This looks very useful, I will let you know if I run into any difficulty.

Joleen