X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Aug 2012 07:46 PM by  anon
Help making xyouts text easier to read
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
15 Aug 2012 07:46 PM
    Hi guys, I'm using xyouts to draw location names on top of a map, with zones of various colours. As you can see in the image below the text become hard to read when certain colours are used such as blue. My question is: Is there an easy way to add say a background of white which is only applied to the xyouts text area? That would make the text easier to read. Any other suggestions on how I could make this more readable are welcome. However they must be using Direct Graphics as my code base is to large to rewrite in Object Graphics (Object Graphics also seems much to slow for my needs).

    Deleted User



    New Member


    Posts:
    New Member


    --
    16 Aug 2012 07:47 AM
    You can use the TextLine object from the Catalyst Library to do this: IDL> text = Obj_New('TextLine', 'Sandy Cape', X=0.35, Y=0.85, Color='NAVY', $ Font=1, /Background, BG_Color='WHITE') IDL> text -> Draw You can find the Catalyst Library here: http://www.idlcoyote.com/catalyst/catlib.html
    You are not authorized to post a reply.