adding a logo

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

adding a logo

Post by joleenf »

Hi,

I would like to add a logo with the setLogo method so that I don't have to worry about bounding boxes and rotation (annotate is affected by these). How do I apply the property:

Code: Select all

activeDisplay().setLogoFile("<myFile>.png")
activeDisplay().setLogoPosition("11,10,-10")  # what does 11 mean?
activeDisplay().setLogoVisibility(1)


How do I apply that code? The setting methods are working, but I can't apply without clicking "apply"

Joleen
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: adding a logo

Post by joleenf »

Setting a logo position from a script, the lower left corner of the window appears to be about

panel[0].setLogoPosition("11,-495,430") rather than the 10,-10 that I need to use when setting interactively. When I use the 11,-495,430 logo position, I see the logo immediately.

Joleen
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: adding a logo

Post by bobc »

Hi Joleen -

Adding a logo via scripting is currently written up as a high priority inquiry (inquiry 1264)

http://mcidas.ssec.wisc.edu/inquiry-v/?inquiry=1264

However, from what you've found, it does appear to be possible right now. In setLogoPosition, I am not sure exactly what the "11" means, as the documentation of these Logo functions appears to be pretty limited. However, this appears to impact the initial location of the logo before the x/y offset. Ex:

Code: Select all

activeDisplay().setLogoPosition("LL,0,0")
activeDisplay().setLogoVisibility(1)

... positions the logo at the lower left corner of the display

Code: Select all

activeDisplay().setLogoPosition("UL,0,0")
activeDisplay().setLogoVisibility(1)

... positions the logo at the upper left corner of the display

Similarly... "UR" goes to the upper right and "LR" goes to the lower right.

- Bob
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: adding a logo

Post by joleenf »

Faulty Test/interpretation.

11 is actually "LL"

Joleen
Post Reply