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

Home » Public Forums » archive » Re: a legend for user-defined symbols
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: a legend for user-defined symbols [message #49939] Mon, 28 August 2006 09:26
Dilkushi@gmail.com is currently offline  Dilkushi@gmail.com
Messages: 21
Registered: August 2006
Junior Member
Dear Dr. Fanning
excellent. It works just great..
I appreciate your time and gesture
Sincerely
Dilkushi de Alwis
Postdoctoral Visiting Scientist
NOAA
5200 Auth Rd
Camp Springs, MD 20746-4304

David Fanning wrote:

> Dilkushi@gmail.com writes:
>
>> i have 3 user-defined symbols how do i create a legend?
>
> I think in general, you would do something like this, probably
> three times:
>
> x = [0.0, 0.5, -0.8, 0.8, -0.5, 0.0]
> y = [1.0, -0.8, 0.3, 0.3, -0.8, 1.0]
> UserSym, x, y, /Fill
> Plot, Findgen(11), PSym=-8, SymSize=2.0
> PlotS, [0.2, 0.3], [0.85, 0.85], PSym=-8, SymSize=2.0, /Normal
> XYOuts, 0.33, 0.845, 'This is the star line', /Normal
>
> 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. (Opata Indian saying, meaning "Perhaps thou
> speakest truth.")
Re: a legend for user-defined symbols [message #49950 is a reply to message #49939] Sat, 26 August 2006 06:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dilkushi@gmail.com writes:

> i have 3 user-defined symbols how do i create a legend?

I think in general, you would do something like this, probably
three times:

x = [0.0, 0.5, -0.8, 0.8, -0.5, 0.0]
y = [1.0, -0.8, 0.3, 0.3, -0.8, 1.0]
UserSym, x, y, /Fill
Plot, Findgen(11), PSym=-8, SymSize=2.0
PlotS, [0.2, 0.3], [0.85, 0.85], PSym=-8, SymSize=2.0, /Normal
XYOuts, 0.33, 0.845, 'This is the star line', /Normal

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. (Opata Indian saying, meaning "Perhaps thou
speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing the color of area outside the "projected" map area
Next Topic: Re: Changing the color of area outside the "projected" map area

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

Current Time: Wed Oct 08 19:16:07 PDT 2025

Total time taken to generate the page: 0.00573 seconds