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

Home » Public Forums » archive » multiple 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
multiple legend [message #76009] Mon, 16 May 2011 07:51 Go to previous message
abc is currently offline  abc
Messages: 46
Registered: March 2011
Member
Dear all,
I am using IDL to make plots. As I am over-plotting
the symbols on the line and I want to make legend for both of them
with the same color as they are appearing in the plot. Here is my
small program but when i run that program it overwrite the previous
legend. i don't know how to show both the legend in a single plot.

cgPlot,A,B,color='red',linestyle=0,background='white', $
xtit='A', ytit='B'
lines=0
items='A'
colors = cgcolor('red')
al_legend,items, linestyle=0,/right, /top,color=colors
cgplot, A,C,psym=2,color='green',SYMSIZE=2,/overplot
psym=2
items='C'
colors = cgcolor('green')
al_legend,items, linestyle=0,psym=7,/right, /top,color=colors

Thanks in advance
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: A Sign of the Times
Next Topic: Re: Add and manipulate a visualization to standard Itool

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

Current Time: Wed Oct 08 19:27:50 PDT 2025

Total time taken to generate the page: 0.00464 seconds