03 Apr 2014 05:11 AM |
|
Hi, I include legend in my plots using aa=legend(...). When my plots have only symbols, the legend contains three symbols for each line. Is it possible not to triplicate the symbols in the legend? ie, I want only one symbol appearing in the legend, for each symbol type of my plot.
Thank you!
|
|
|
|
Deleted User New Member
Posts:  
03 Apr 2014 08:46 AM |
|
Hi Aline,
Could you send us an example code?
What version of IDL are you using?
Cheers,
Fernando
|
|
|
|
Deleted User New Member
Posts:  
04 Apr 2014 01:03 AM |
|
Sure. For instance, this bit of code:
IDL> a=plot(findgen(20),symbol='square',linestyle='')
IDL> t1=legend(target=a, shadow=0, position=[0.3,0.8])
produces a legend that has 3 symbols before the name of the plot 'Plot'. I'd like to show just one of the symbols. When I have several different symbols in the same plot, each one with a different color and a different shape, the legend becomes very cluttered.
Thanks!
|
|
|
|
Deleted User New Member
Posts:  
07 Apr 2014 01:28 PM |
|
Hi Aline,
Well, legend shows how the line will look like, so that's why it shoulds more than one symbol. What you can do is to use the SYMBOL() function instead, and create the legend instead:
s=symbol(0.3,0.8, 'square', LABEL_STRING='Plot')
I hope that helps instead.
Cheers,
Fernando
|
|
|
|