Changeset 1127 for palm/trunk/SCRIPTS
- Timestamp:
- Apr 11, 2013 3:17:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/NCL/profiles.ncl
r1126 r1127 1499 1499 res@lgLabelFontHeightF = font_size_legend 1500 1500 res@lgTitleString = "Time (h)" 1501 res@lgTitleFontHeightF = font_size 1501 res@lgTitleFontHeightF = font_size 1502 1502 res@txFontHeightF = font_size 1503 1503 res@tiXAxisFontHeightF = font_size … … 1538 1538 1539 1539 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 1543 1548 resP@txFont = "helvetica" 1544 1549 resP@txString = f_att@title … … 3464 3469 res@trXMinF = min(min_nof(:,pl)) 3465 3470 res@trXMaxF = max(max_nof(:,pl)) 3471 res@xyDashPattern=0 3466 3472 res@gsnLeftString = " "; name(0,pl) 3467 3473 res@gsnRightString = " ";unit_(0,pl) … … 3469 3475 data_0(:,:) = min(min_nof(:,pl)) 3470 3476 3471 if ( mod(no_plots - pl + 1, no_rows * no_columns) .EQ. 2) then3477 if ( (mod(no_plots - pl, no_rows * no_columns) .EQ. 1) .OR. (no_rows * no_columns .EQ. 1) ) then 3472 3478 res@pmLegendDisplayMode = "Always" 3473 3479 else … … 3478 3484 3479 3485 ; *************************************************** 3480 ; legend for combined plot 3486 ; legend for combined plot (File 1, File 2, ...) 3481 3487 ; *************************************************** 3482 3488 3483 if ( mod(no_plots - pl + 1, no_rows * no_columns) .EQ. 2)then3489 if ( (mod(no_plots - pl, no_rows * no_columns) .EQ. 1) .OR. (no_rows * no_columns .EQ. 1) )then 3484 3490 lgres = True 3485 3491 lgMonoDashIndex = False … … 3487 3493 lgres@lgLabelFontHeightF = font_size_legend * 10.0 3488 3494 lgres@vpWidthF = max(string_len)*0.02;0.015 3489 lgres@vpHeightF = 0.03 *no_files3495 lgres@vpHeightF = 0.035*no_files 3490 3496 lgres@lgDashIndexes = multi_dash(no_files-1:0) 3497 lgres@lgLineDashSegLenF = 0.075 3491 3498 lbid = gsn_create_legend(\ 3492 3499 wks,no_files,multi_legend(no_files-1:0),lgres)
Note: See TracChangeset
for help on using the changeset viewer.