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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to simplify or mesh a IDLgrLegend Obj ? [message #65253] Wed, 18 February 2009 05:16
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
dosfun@163.com writes:

> But what I really want is to break the legend into separate parts,
> then I can move the separated legends one by one.
>
> ;; I plan to use
> oLegend->Break, objList =3D objList

Uh, huh. And why do you think you can't you do that with
my solution?

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.")
Re: How to simplify or mesh a IDLgrLegend Obj ? [message #65260 is a reply to message #65253] Tue, 17 February 2009 21:06 Go to previous message
dosfun is currently offline  dosfun
Messages: 14
Registered: February 2009
Junior Member
On 2月18日, 上午11时44分, David Fanning <n...@dfanning.com> wrote:
> dos...@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.")

Thanks,

But what I really want is to break the legend into separate parts,
then I can move the separated legends one by one.

;; I plan to use
oLegend->Break, objList = objList


Cheers.
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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 15:21:37 PDT 2025

Total time taken to generate the page: 0.00634 seconds