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

Home » Public Forums » archive » Multiple instances of usersym in legend
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
Multiple instances of usersym in legend [message #49344] Thu, 20 July 2006 09:17 Go to next message
vorticitywolfe is currently offline  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 Go to previous message
mchinand is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL syntax coloring for BBEdit and TextWrangler
Next Topic: Multiple Spawn Commands

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

Current Time: Thu Oct 09 23:25:42 PDT 2025

Total time taken to generate the page: 0.07868 seconds