Changeset 782


Ignore:
Timestamp:
Nov 15, 2011 7:43:37 AM (11 years ago)
Author:
heinze
Message:

Bugfix concerning setting of font size in legends.

Location:
palm/trunk/SCRIPTS/NCL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/NCL/.ncl.config.default

    r566 r782  
    12681268      ; data type: float
    12691269      ;
    1270       ; example: font_size_legend = 0.2
    1271       ;
    1272       ; default:   0.2
     1270      ; example: font_size_legend = 0.02
     1271      ;
     1272      ; default:   0.02
    12731273      ;***************************************************
    12741274      if(.not. isvar("font_size_legend"))then
    12751275     
    12761276         
    1277          font_size_legend = 0.2
     1277         font_size_legend = 0.02
    12781278         
    12791279         
  • palm/trunk/SCRIPTS/NCL/profiles.ncl

    r769 r782  
    11561156   res@tmLabelAutoStride       = True
    11571157   if (legend .EQ. 1)then
    1158       res@pmLegendDisplayMode     = "Always"
     1158      res@pmLegendDisplayMode  = "Always"
    11591159   end if
    11601160
     
    11651165   res@pmLegendWidthF          = 0.12
    11661166   res@pmLegendHeightF         = 0.05*np
    1167    res@lgLabelFontHeightF     = font_size
    1168    res@lgTitleString      = "Time (h)"
    1169    res@lgTitleFontHeightF = font_size   
    1170    res@txFontHeightF      = font_size
    1171    res@tiXAxisFontHeightF = font_size
    1172    res@tiYAxisFontHeightF = font_size
    1173    res@tmXBLabelFontHeightF = font_size
    1174    res@tmYLLabelFontHeightF = font_size
    1175    res@tiXAxisString      = " "
     1167   res@lgLabelFontHeightF      = font_size_legend
     1168   res@lgTitleString           = "Time (h)"
     1169   res@lgTitleFontHeightF      = font_size   
     1170   res@txFontHeightF           = font_size
     1171   res@tiXAxisFontHeightF      = font_size
     1172   res@tiYAxisFontHeightF      = font_size
     1173   res@tmXBLabelFontHeightF    = font_size
     1174   res@tmYLLabelFontHeightF    = font_size
     1175   res@tiXAxisString            = " "
    11761176   if ( black .eq. 0 ) then 
    11771177      res@xyLineColors = -(ispan(-237,-2,235/np))
    11781178   end if
    11791179   if (norm_z .EQ. 1)then
    1180       res@tiYAxisString      = "Height (m)"
     1180      res@tiYAxisString = "Height (m)"
    11811181   else   
    1182       res@tiYAxisString      = "Height / "+norm_z+" (m)"
     1182      res@tiYAxisString = "Height / "+norm_z+" (m)"
    11831183   end if
    11841184   
     
    11881188
    11891189   if (dash .EQ. 0 ) then
    1190       res@xyMonoDashPattern       = True
     1190      res@xyMonoDashPattern = True
    11911191   else
    1192       res@xyMonoDashPattern       = False
     1192      res@xyMonoDashPattern = False
    11931193      if (no_files .GT. 1)
    1194          res@xyMonoDashPattern       = True 
     1194         res@xyMonoDashPattern = True 
    11951195         print(" ")
    11961196         print("If you use more than one file, patterns for different "+\
Note: See TracChangeset for help on using the changeset viewer.