Re: a legend for user-defined symbols [message #49939] |
Mon, 28 August 2006 09:26 |
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  |
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.")
|
|
|