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

Home » Public Forums » archive » Legend for plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Legend for plot [message #68003] Thu, 10 September 2009 23:52 Go to previous message
b.a is currently offline  b.a
Messages: 26
Registered: July 2009
Junior Member
Hi,

Does anyone know how to place a legend (annotation) inside a draw
widget? The legend that I use is somehow like this:

mywindow = OBJ_NEW ( ' IDLgrWindow ' )
myview = OBJ_NEW ( ' IDLgrView ' )

itemNameArr = ['One', 'two']

myLegend = OBJ_NEW ( ' IDLgrLegend ' , itemNameArr, /
SHOW_OUTLINE)

myview->Add, myLegend
mywindow->Draw, myview

and I have a Widget_draw that contains my plots (curves):

dr_window = WIDGET_DRAW ( tlb , UVALUE= 'draw' )

I know that by " mywindow->Draw, myview " the legend appears in
separate window (like an image) but I couldn't find any way to place
it inside my plot window (the widget_draw).

Thank you
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: rotated empirical orthogonal functions
Next Topic: IDL on Mac

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

Current Time: Sat Oct 11 09:47:33 PDT 2025

Total time taken to generate the page: 1.04142 seconds