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

Home » Public Forums » archive » Re: Using SYMCAT with LEGEND
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using SYMCAT with LEGEND [message #56489] Thu, 25 October 2007 22:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
willettk@gmail.com writes:

> When I execute this, however, LEGEND plots all three datasets as
> filled circles (SYMCAT(16)), when it should go [filled diamond, filled
> square, filled circle]. There are ways around this (making my own
> legend by hand, for a start), but I'd like to know if anyone has a
> quick solution for making these two programs work with each other.

OK, to make this work, I commented out lines 411 and 412:

; if (psym[I] eq 8) and (N_elements(usersym) GT 1) then $
; usersym,usersym,fill=fill,color=colors[I]

This means you won't be able to specify your own symbol in
legend anymore. (Why would you need to if you are using
SYMCAT!?)

Then, on line 422 I found the PSYM keyword and changed
it from "psym=psym[I]" to "psym=SYMCAT(psym[I])".

Done.

Then, I tried this:

IDL> items = ['Filled Square', 'Hourglass', 'Filled Star']
IDL> sym = [15, 21, 46]
IDL> Legend, items, PSYM=sym

For a quick and dirty solution, it's not so bad. :-)

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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: cursor,xi,yi/device
Next Topic: Computer Security Information

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

Current Time: Sat Oct 11 16:20:35 PDT 2025

Total time taken to generate the page: 1.51955 seconds