<div dir="ltr"><div>Since you have four plots, so it would be best to try 2 rows and 2 columns:</div><div>gsn_panel(wks,plot,(/2,2/),resP)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2019 at 11:54 AM Anahita Amiri Farahani <<a href="mailto:aamir003@ucr.edu">aamir003@ucr.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,<br class="gmail-m_3553813780329543579gmail-Apple-interchange-newline">I am trying to plot multiple panels in a figure, when I try to put three panels in a row instead of two panels, NCL changes the quality of panels and puts less significant symbol in a panel. I attached the code for plotting. Is it possible to put three panels and keep the quality of the figure?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div><div>wks = gsn_open_wks("eps","SDE")</div><div>gsn_define_colormap(wks,"BlWhRe") ; choose color</div><div>plot = new(4,graphic) </div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div> res = True ; plot mods desired</div><div> res@cnFillOn = True ; turn on color </div><div> res@gsnSpreadColors = True ; use full color map</div><div> res@cnLinesOn = False ; no contour lines</div><div> res@cnLineLabelsOn = False ; no line labels</div><div><br></div><div> </div><div> res@mpMaxLatF = 90 ; specify the plot domain</div><div> res@mpMinLatF = -90 ; </div><div> res@mpMinLonF = 0 ;</div><div> res@mpMaxLonF = 357.5 </div><div> res@mpCenterLonF= 0;178.75</div><div> </div><div><br></div><div><br></div><div> ;res@gsnAddCyclic = False </div><div> res@gsnDraw = False ; don't draw</div><div> res@gsnFrame = False ; don't advance frame</div><div> ;res@cnInfoLabelOn = False ; turn off cn info label</div><div> ;res@cnFillOn = True ; turn on color</div><div> ;res@gsnSpreadColors = True ; spread out color table</div><div> ; res@gsnSpreadColorStart = 2 ; color to startt</div><div><br></div><div> res@lbLabelBarOn = False ; turn off individual cb's</div><div><br></div><div>res@lbTitleOn = True ; turn on title</div><div>res@lbTitleString = "(W m~S~-2~N~)" ; title string</div><div>res@lbTitlePosition = "Right" ; title position</div><div>res@lbTitleFontHeightF= .02 ; make title smaller</div><div>res@lbTitleDirection = "Across" ; title direction</div><div><br></div><div><br></div><div><br></div><div> ;; res@cnLevelSelectionMode = "AutomaticLevels" ; AutomaticLevels</div><div><br></div><div><br></div><div> res@cnLevelSelectionMode = "ManualLevels" ; AutomaticLevels</div><div> res@cnMinLevelValF = -4. ; min level</div><div> res@cnMaxLevelValF = 4. ; max level</div><div> res@cnLevelSpacingF = 0.2 ; interval</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div>res@gsnLeftString = "SDE_CAM4" ; change left string</div><div>plot(0)= gsn_csm_contour_map(wks,sde_cam4(:,:),res)</div><div>res@gsnLeftString = "SDE_CAM5" ; change left string</div><div>plot(1)= gsn_csm_contour_map(wks,sde_cam5(:,:),res)</div><div>res@gsnLeftString = "SDE_GFDL" ; change left string</div><div>plot(2)=gsn_csm_contour_map(wks,sde_gfdl(:,:),res)</div><div><br></div><div>res@gsnLeftString = "Model Agreement" ; change left string</div><div>plot(3)= gsn_csm_contour_map(wks,aa_sde(:,:),res)</div><div><br></div><div><br></div><div>;delete(wks)</div><div>; ========================= PLOT 2 ==============================</div><div> res2 = True ; res2 probability plots</div><div><br></div><div><br></div><div> res2@gsnDraw = False ; Do not draw plot</div><div> res2@gsnFrame = False ; Do not advance frame</div><div> res2@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</div><div> res2@cnMinLevelValF = 0.00 ; set min contour level</div><div> res2@cnMaxLevelValF = 1.05 ; set max contour level</div><div> res2@cnLevelSpacingF = 0.05 ; set contour spacing</div><div><br></div><div> res2@cnInfoLabelOn = False ; turn off info label</div><div><br></div><div> res2@cnLinesOn = False ; do not draw contour lines</div><div> res2@cnLineLabelsOn = False ; do not draw contour labels</div><div><br></div><div> res2@cnLinesOn = False ; do not draw contour lines</div><div> res2@cnLineLabelsOn = False ; do not draw contour labels</div><div> res2@gsnLeftString = ""</div><div> res2@gsnRightString = ""</div><div><br></div><div> res2@cnFillScaleF = 0.6 ; add extra density</div><div> res2@cnLevelSpacingF = 0.04 ; set contour spacing</div><div> ;res2@gsnAddCyclic = False</div><div><br></div><div>plot2 = gsn_csm_contour(wks,gsn_add_cyclic_point(alpha_cam4(:,:)), res2) </div><div>plot2 = ShadeGtContour(plot2, 0.95, 17) ; shade all areas less than the</div><div> ; 0.05 contour level</div><div>plot3 = gsn_csm_contour(wks,gsn_add_cyclic_point(alpha_cam5(:,:)), res2) </div><div>plot3 = ShadeGtContour(plot3, 0.95, 17)</div><div><br></div><div>plot4 = gsn_csm_contour(wks,gsn_add_cyclic_point(alpha_gfdl(:,:)), res2) </div><div>plot4 = ShadeGtContour(plot4, 0.95, 17)</div><div><br></div><div>overlay (plot(0), plot2)</div><div>overlay (plot(1), plot3)</div><div>overlay (plot(2), plot4)</div><div><br></div><div><br></div><div>;************************************************</div><div>; create panel</div><div>;************************************************</div><div> resP = True ; modify the panel plot</div><div><br></div><div> resP@gsnPanelLabelBar = True ; add common colorbar</div><div> resP@gsnPanelFigureStrings = (/"a)","b)","c)","d)"/) ; add strings to panel</div><div> gsn_panel(wks,plot,(/3,2/),resP)</div><div> ;gsn_panel(wks,plot,(/2,3/),resP) </div><div> ;draw (plot)</div><div> ;frame(wks)</div><div> delete(wks)</div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>