IDL plot legend

 cgPlot, cgDemoData(17), PSym=-15, Color='red', YRange=[0,140], $
       LineStyle=0, YStyle=1
   cgPlot, cgDemoData(17), PSym=-16, Color='dodger blue', /Overplot, $
       LineStyle=2
   cgLegend, Title=['Experiment 1', 'Experiment 2'], PSym=[-15,-16], $
       SymSize=2, Color=['red','dodger blue'], Location=[0.2, 0.85], $
       /Center_Sym, LineStyle=[0,2], VSpace=2.0, /Box
 
  
 
 

你可能感兴趣的:(IDL)