IDL制legend小整理

今天做了超级多的图,顺手粘一下legend的code,后面再整理

  labels = ['< 0','0-50', '50-100', '100-150', '150-200', '200-250', $
    '250-300', '300-350', '350-400', '>400']
  cgDCBar, NColors=10, Bottom=1, Color='black', $
    Position=[0.05, 0.88, 0.95, 0.92], Rotate=-45, $
    Labels=labels, Charsize=charsize, $
    Title='Surface Latent Heat Flux (watts/meter$\up2$)'
items = ['Passable', 'Unpassable']
   psyms = [15, 15]
   colors = ['blu5','red6' ]
  cgLegend, Title=items,PSym=psyms, Color=colors,SymSize=1.75, Length=0.0,$
    Location=[0.15, 0.98], /Box,VSPACE=1.5;, /Data
cgColorbar, RANGE=[minvalue,maxvalue], DIVISIONS=6, FORMAT='(I2)', $
    POSITION=[0.15, 0.95, 0.95,  0.97], ANNOTATECOLOR='navy', XMINOR=0, $
    TITLE='Index', FONT=0, NCOLORS=40, OOB_Low=[173,0,0], OOB_High=[0,0,173], oob_factor=5,/NOERASE   ;173,0,0



阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页