Ignore:
Timestamp:
Apr 11, 2013 3:17:34 PM (11 years ago)
Author:
hoffmann
Message:

bugfix in palmplot pr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/NCL/profiles.ncl

    r1126 r1127  
    14991499      res@lgLabelFontHeightF      = font_size_legend
    15001500      res@lgTitleString           = "Time (h)"
    1501       res@lgTitleFontHeightF      = font_size   
     1501      res@lgTitleFontHeightF      = font_size
    15021502      res@txFontHeightF           = font_size
    15031503      res@tiXAxisFontHeightF      = font_size
     
    15381538
    15391539      resP                            = True
    1540       resP@gsnMaximize                = True
    1541       resP@gsnPanelXWhiteSpacePercent = 6.0
    1542       resP@gsnPanelYWhiteSpacePercent = 6.0
     1540      resP@gsnMaximize                = True
     1541      if ( no_files .EQ. 1 )  then
     1542         resP@gsnPanelXWhiteSpacePercent = 6.0
     1543         resP@gsnPanelYWhiteSpacePercent = 6.0
     1544      else
     1545         resP@gsnPanelXWhiteSpacePercent = 6.0
     1546         resP@gsnPanelYWhiteSpacePercent = 0.0
     1547      end if
    15431548      resP@txFont                     = "helvetica"
    15441549      resP@txString                   = f_att@title
     
    34643469            res@trXMinF = min(min_nof(:,pl))
    34653470            res@trXMaxF = max(max_nof(:,pl))
     3471            res@xyDashPattern=0
    34663472            res@gsnLeftString  = " "; name(0,pl)
    34673473            res@gsnRightString = " ";unit_(0,pl)
     
    34693475            data_0(:,:) = min(min_nof(:,pl))
    34703476
    3471             if (mod(no_plots - pl + 1, no_rows * no_columns) .EQ. 2) then
     3477            if ( (mod(no_plots - pl, no_rows * no_columns) .EQ. 1) .OR. (no_rows * no_columns .EQ. 1) ) then
    34723478                res@pmLegendDisplayMode  = "Always"
    34733479            else
     
    34783484
    34793485            ; ***************************************************
    3480             ; legend for combined plot
     3486            ; legend for combined plot (File 1, File 2, ...)
    34813487            ; ***************************************************
    34823488
    3483             if (mod(no_plots - pl + 1, no_rows * no_columns) .EQ. 2)then
     3489            if ( (mod(no_plots - pl, no_rows * no_columns) .EQ. 1) .OR. (no_rows * no_columns .EQ. 1) )then
    34843490                lgres                    = True
    34853491                lgMonoDashIndex          = False
     
    34873493                lgres@lgLabelFontHeightF = font_size_legend * 10.0       
    34883494                lgres@vpWidthF           = max(string_len)*0.02;0.015           
    3489                 lgres@vpHeightF          = 0.03*no_files   
     3495                lgres@vpHeightF          = 0.035*no_files   
    34903496                lgres@lgDashIndexes      = multi_dash(no_files-1:0)
     3497                lgres@lgLineDashSegLenF  = 0.075
    34913498                lbid = gsn_create_legend(\
    34923499                                    wks,no_files,multi_legend(no_files-1:0),lgres)
Note: See TracChangeset for help on using the changeset viewer.