<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Alan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is a good question that we currently don't have a good example for, so I decided to create one. See panel_40.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#e40">http://www.ncl.ucar.edu/Applications/panel.shtml#e40</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">I suggest using gsn_attach_plots, so you can more easily attach the four plots with a labelbar turned on only for the far right plot.</div><div><br></div></div><div class="gmail_default">If you want to contribute your own script in place of this one (which uses dummy data) I'll be happy to do so. I would need your new script, and a PNG image. This will look better than the dummy data I used.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 3:01 PM, Alan Rhoades <span dir="ltr"><<a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><img src="cid:ii_159ae6958e496359" alt="Inline image 1" width="543" height="281"><br><span style="color:rgb(38,38,38);font-size:13px"><br></span><div><span style="color:rgb(38,38,38);font-size:13px">Hello,</span></div><div><span style="color:rgb(38,38,38);font-size:13px"><br></span></div><div><span style="color:rgb(38,38,38);font-size:13px">I've been trying to set all of the label bars in my plot above, save for the far right plot, to be "transparent" (aka fill everything as white or the background color) to preserve an equal space that NCL allocates across all plots. If I don't preserve the label bar in a "transparent" way the far right plot (UDEL) becomes an awkward size compared to the other 3 plots to its left. </span></div><div><br></div><div>However, when I make the label bar "transparent" (see ERA-interim plot) it still has a slight blue gradient associated with it. </div><div><br></div><div>Any ideas how to eliminate this gradient fill entirely? I have included my resource settings below.</div><div><br></div><div>I have the following general res@ settings...<br><br><div>;-----------------------------<wbr>--------------</div><div>; PLOT RESOURCES</div><div>;-----------------------------<wbr>--------------</div><div><br></div><div> res = True ; plot modifications desired</div><div> res@gsnMaximize = False ; Maximize size of plot in frame</div><div>; res@gsnSpreadColors = True ; Use full colormap, but start</div><div><br></div><div> res@cnFillOn = True ; Turn on contour fill</div><div> res@cnFillMode = "AreaFill" ; Style of fill. You can also</div><div>; res@cnFillMode = "RasterFill" ; Style of fill. You can also</div><div> ; use "CellFill" and "RasterFill"</div><div> res@cnLinesOn = False ; Turn off contour lines</div><div> res@cnLineLabelsOn = False ; Turn off contour line labels</div><div> res@cnLevelSelectionMode = "ExplicitLevels"</div><div><br></div><div> res@lbLabelAutoStride = True ; Clean up labelbar labels.</div><div><br></div><div>; PANEL PLOT SPECIFIC RESOURCES</div><div> res@gsnDraw = False</div><div> res@gsnFrame = False ; don't advance frame</div><div><br></div><div> res@mpOutlineBoundarySets = "geophysicalandusstates"; turn on states</div><div> res@cnMissingValFillColor = "white" ; make missing values white</div><div> res@mpLandFillColor = -1 ; transparent = -1</div><div><br></div><div><div>;MOVE TEXT STRINGS IN PLOTS AND SET FONT HEIGHTS</div><div> Font = 0.020 ; best = 0.030</div><div> Position = 0.010</div><div><br></div><div> res@tmYLLabelFontHeightF = Font</div><div> res@tmXBLabelFontHeightF = Font</div><div> res@gsnLeftStringFontHeightF = Font</div><div> res@<wbr>gsnLeftStringOrthogonalPosF = Position ; Move text up or down from plot boundary</div><div> res@gsnRightStringFontHeightF = Font</div><div> res@<wbr>gsnRightStringOrthogonalPosF = Position ; Move text up or down from plot boundary</div><div> res@gsnCenterStringFontHeightF = Font</div><div> res@<wbr>gsnCenterStringOrthogonalPosF = Position ; Move text up or down f</div><div><br></div><div>; MODIFY LABELBAR THICKNESS</div><div> res@pmLabelBarHeightF = 0.50 ; make label bar shorter</div><div> res@pmLabelBarWidthF = 0.075 ; make label bar thinner</div><div><br></div><div>; MOVE LABEL BARS AND TITLES BELOW PLOT</div><div> res@lbTitlePosition = "Bottom" ; put it below the plot</div><div><br></div><div> overall x-axis<br></div><div>; LABELBAR FONT SIZES</div><div> res@lbLabelFontHeightF = Font</div><div> res@lbTitleFontHeightF = Font*0.95 ; 0.95 = best</div><div><br></div><div>; All data is regional</div><div> res@gsnAddCyclic = False</div><div><br></div><div>;MAKE LABELS BLANK</div><div> res@gsnLeftString = "" ; add the gsn titles</div><div> res@gsnCenterString = ""</div><div> res@gsnRightString = ""</div><div><br></div><div>; TURN OFF TICKMARKS AND TOP LABELS FOR SPACING (TURN THEM ON INDIVIDUALLY)</div><div> res@tmXTOn = False ; turn off top labels</div><div> res@tmYROn = False ; turn off right labels</div><div> res@tmXBLabelsOn = False</div><div> res@tmXBOn = False</div><div> res@tmYLLabelsOn = False</div><div> res@tmYLOn = False</div><div><br></div><div>; VERTICAL LABEL BAR ALIGNMENT</div><div>; res@lbLabelBarOn = False ; turn off labelbar, but still customize</div><div> res@lbOrientation = "Vertical" ; it so we can recreate it later</div><div> res@lbTitleAngleF = 90. ; title angle</div><div> res@lbTitlePosition = "Right" ; title location</div><div> res@lbTitleDirection = "Across" ; letter angle</div></div><div><br></div><div><div> gsn_define_colormap(wks,"<wbr>WhiteBlueGreenYellowRed")</div></div><div><br></div><div><div> Levels_TSA = ispan(260,305,5)</div></div><div><div> cmap5 = read_colormap_file("t2m_29lev"<wbr>)</div><div> res_TSA = res_westernusa</div><div> res_TSA@cnLevels = Levels_TSA</div><div> res_TSA@lbLabelStrings = sprinti(" %-5i ",Levels_TSA) ; the extra spaces are a kludge to force the labelbar</div></div><br>The ERA-Interim plot res@ settings are...</div><div><br></div><div><div>;-----------------------------<wbr>------------</div><div>; REGIONAL PLOT</div><div>;-----------------------------<wbr>------------</div><div><br></div><div> res_regional_${data}_${var}_$<wbr>{months} = res_TSA</div><div> res_regional_${data}_${var}_$<wbr>{months}@tmYLOn = True</div><div> res_regional_${data}_${var}_$<wbr>{months}@tmYLLabelsOn = True</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbLabelAutoStride = False ; Clean up labelbar labels.</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbMonoFillPattern = True ; fill sold</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbMonoFillColor = True ; fill sold</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbFillBackground = "white"</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbFillColors = "white"</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbBoxLineColor = "white"</div><div> res_regional_${data}_${var}_$<wbr>{months}@lbLabelFontColor = "white"</div><div>; res_regional_${data}_${var}_${<wbr>months}@<wbr>pmLabelBarOrthogonalPosF = 0.00</div><div> res_regional_${data}_${var}_$<wbr>{months}@gsnLeftString = "ERA-Interim"</div><div> res_regional_${data}_${var}_$<wbr>{months}@gsnRightString = " 1985-2015 "</div><div> res_regional_${data}_${var}_$<wbr>{months}@gsnCenterString = ""</div></div><div><div> plot_regional_${data}_${var}_<wbr>${months} = gsn_csm_contour_map_ce(wks,${<wbr>data}_${var}_${months},res_<wbr>regional_${data}_${var}_${<wbr>months})</div></div><div><br></div><div>AR</div><div><img width="0" height="0" class="m_3253207736701339277mailtrack-img" src="https://mailtrack.io/trace/mail/e3c6d49db04949fa6fbf46643f8b1b478172dfd8.png?u=1126611"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_3253207736701339277gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-weight:bold"><font color="#000000"><br></font></div><div><font color="#000000"><font size="1"><b>Alan Rhoades | </b></font><b style="font-size:12.8px"><font size="1">PhD Candidate | </font></b></font><b style="font-size:12.8px"><font color="#000000" size="1">University of California, Davis</font></b></div><div><b style="font-size:12.8px"><font color="#000000" size="1">Atmospheric Science Graduate Group | </font></b><b style="font-size:12.8px"><font color="#000000" size="1">Climate Change Water and Society (CCWAS) NSF IGERT Trainee</font></b></div><div><div><b style="color:rgb(0,0,0);font-size:12.8px"><i><font face="arial, helvetica, sans-serif"><u><font size="1"><a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a></font></u></font><span style="font-size:12.8px"> |</span><span style="font-size:12.8px"> </span><u style="font-size:12.8px;font-family:arial,helvetica,sans-serif"><a href="mailto:amrhoades@ucdavis.edu" target="_blank"><font size="1">amr<wbr>hoades@ucdavis.edu</font></a></u></i></b><b><font color="#000000" size="1"><br></font></b></div><div><font color="#000000"><b><i><font size="1"><u><a href="http://alanrhoades.weebly.com/" target="_blank">Website</a></u></font><span style="font-size:12.8px"> |</span><span style="font-size:12.8px"> </span><font size="1"><u><a href="https://www.researchgate.net/profile/Alan_Rhoades" target="_blank">Research Gate</a></u></font><span style="font-size:12.8px"> |</span><font size="1"> </font><u style="font-size:12.8px"><font size="1"><a href="https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a" target="_blank">LinkedIn</a></font></u></i></b></font><b style="font-size:12.8px;color:rgb(0,0,0)"><i><span style="font-size:12.8px"> | </span></i></b><b style="font-size:12.8px;color:rgb(0,0,0)"><i><font size="1"><u><a href="https://scholar.google.gr/citations?user=AVFLiFsAAAAJ&hl=en" target="_blank">Google Scholar</a></u></font></i></b></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><br><br></font></span></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>