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

Home » Public Forums » archive » legend() with symbols
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: legend() with symbols [message #91990 is a reply to message #91988] Fri, 25 September 2015 01:35 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le vendredi 25 septembre 2015 00:03:16 UTC+2, laura...@gmail.com a écrit :
> This may be an instance that no one thought of, but what if I want to make a legend for a plot that contains both lines ("plot" function) and filled circles ("scatterplot" function, although I'd be happy if it worked with "symbol" instead)? If you use the sample_width=0 workaround to get just one filled circle in the legend, no lines show up.
>
> Thanks in advance,
>
> Laura


I guess that this code:
pl = plot(/TEST)
pl.getdata, x, y
pl1 = scatterplot(x,y,/OVER, /SYM_FILLED)
l = legend(TARGET=[pl,pl1])
is doing what you want.
alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HISTOGRAM
Next Topic: MONTHS IN PLOT

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

Current Time: Wed Oct 08 11:41:26 PDT 2025

Total time taken to generate the page: 0.00454 seconds