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

Home » Public Forums » archive » Re: How to simplify or mesh a IDLgrLegend Obj ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to simplify or mesh a IDLgrLegend Obj ? [message #65261 is a reply to message #65260] Tue, 17 February 2009 19:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dosfun@163.com writes:

> I have created a legend which include many items, how can I simpkify
> this legend? I mean to make this big legend into some small legends.
> Thank you for any tips.
>
> my code is like this:
>
> ....
> nameList = ['a', 'b', 'c']
> objList = [symbol_1, symbol_2, symbol_3]
>
> oLegend = Obj_New('IDLgrLegend' , $
> Item_Name = nameList, $
> Item_Obj = objList, $
> /Recompute )

Uh, maybe you could subscript your arrays. :-)

oLegend = Obj_New('IDLgrLegend' , $
Item_Name = nameList[0:1], $
Item_Obj = objList[0:1], $
/Recompute )

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: another IDL oddity
Next Topic: Re: get LAT/LON from georef image

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

Current Time: Wed Oct 08 19:36:46 PDT 2025

Total time taken to generate the page: 0.00461 seconds