I have filed a bug report to make sure the IDL developers know about this issue (IDL-69580). A workaround is to plot the same point twice. In addition, you can make force only one symbol to appear in the legend (instead of three) by using the SAMPLE_WIDTH and HORIZONTAL_SPACING keyword:
pro galaxy_trav_forum_post
compile_opt idl2
p0 = PLOT([1,2],[3,4], name=' A',LINESTYLE=6,SYMBOL='o',sym_size=1., /SYM_FILLED,sym_color='grey', xrange=[0,5], yrange=[0,5])
p1 = PLOT([3,3],[1,1], name=' B',LINESTYLE=6,SYMBOL='o', sym_size=1., /SYM_FILLED,sym_color='orange',/overplot)
l = legend(TARGET=[p0,p1],/DATA, $
/AUTO_TEXT_COLOR, sample_width=0, $
HORIZONTAL_SPACING=.1)
end
- David Starbuck
Harris GS
|