Multiple instances of usersym in legend [message #49344] |
Thu, 20 July 2006 09:17  |
vorticitywolfe
Messages: 19 Registered: January 2006
|
Junior Member |
|
|
Hello,
I'm trying to use multiple instances of usersym in the famous
legend.pro by Fred Knight. However, once you define usersym it sticks
and I can't figure out a way to allow it to reset for the following
line.
usersym,[ -1, 1, -1, -1 ], [1, 0, -1, 1 ]
;usersym,[ -1, 1, -1, -1 ], [1, 0, -1, 1 ]
legend,['square','right triangle'],psym=[8,8], /fill
this works and plots two squares, but I want the second square to be a
filled right triangle for example.
Can anyone point me in the right direction?
Thanks for your help!
Jonathan
|
|
|
Re: Multiple instances of usersym in legend [message #49438 is a reply to message #49344] |
Thu, 20 July 2006 12:59  |
mchinand
Messages: 66 Registered: September 1996
|
Member |
|
|
In article <1153412265.928169.121390@75g2000cwc.googlegroups.com>,
Jonathan Wolfe <vorticitywolfe@gmail.com> wrote:
> Hello,
>
> I'm trying to use multiple instances of usersym in the famous
> legend.pro by Fred Knight. However, once you define usersym it sticks
> and I can't figure out a way to allow it to reset for the following
> line.
>
> usersym,[ -1, 1, -1, -1 ], [1, 0, -1, 1 ]
> ;usersym,[ -1, 1, -1, -1 ], [1, 0, -1, 1 ]
> legend,['square','right triangle'],psym=[8,8], /fill
>
> this works and plots two squares, but I want the second square to be a
> filled right triangle for example.
>
> Can anyone point me in the right direction?
>
> Thanks for your help!
See the example in the legend.pro header that makes use of the corners keyword and legend is called
twice so you change the usersym in between. You'll also have to manually create the box around
the legend with the plots command as they do in the example.
Hope that helps,
--Mike
--
Michael Chinander, PhD
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
|
|
|