<div dir="ltr">Thanks, it worked, I have to more questions,<div><br></div><div>How can I put different color bars on the panel a and b, and in panel c "c)" covers some part of the plot is there any way to change its position?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 1:47 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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">You are getting warnings about resources not being applied correctly to your xy plot. Looking at those error messages more closely: are you setting the gsnSpreadColors in your res2 resource list for your xy plot? No, but you are setting that resource in your res resource list. Look at the plot call:<div> plot(2)  = gsn_csm_xy (wks,Absp3D_summer2,lev3,res)</div><div>Change the above from res->res2 and you should be good. If not, let ncl-talk know.</div><span class="HOEnZb"><font color="#888888"><div>Adam<br><div> </div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 2:38 PM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</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">Attached is the correct plot for the last panel, so the title is not written and also the line color, thickness not matched. and    res2@trYReverse = True is not applied. and I got these warnings:<div><br></div><div>




<span></span>





<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnFillOn is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:gsnSpreadColorStart is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:gsnSpreadColors is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:lbLabelBarOn is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnInfoLabelOn is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnLineLabelsOn is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnLevelSelectionMode is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnMinLevelValF is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnMaxLevelValF is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnLevelSpacingF is not a valid resource in atm_sfc_fine_xy at this time</span></p>
<p class="m_3863923464009688008m_-124667894139845533gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:Courier;color:rgb(255,240,165);background-color:rgb(19,119,62)"><span class="m_3863923464009688008m_-124667894139845533gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:cnLinesOn is not a valid resource in atm_sfc_fine_xy at this time</span></p>


<div><br></div><div><br></div><div><br></div>Thank you,</div><div>Ana<br><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 1:32 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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">Hi Anahita,<div>Looking at your output and the script I do not see what is wrong. Can you respond to ncl-talk with what is wrong with the plot and what error messages you are getting?</div><span class="m_3863923464009688008m_-124667894139845533HOEnZb"><font color="#888888"><div>Adam</div></font></span></div><div class="m_3863923464009688008m_-124667894139845533HOEnZb"><div class="m_3863923464009688008m_-124667894139845533h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 22, 2018 at 2:20 PM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</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">Dear Adam,<div><br></div><div>Thanks for your help, I tried to apply what you suggested but got a bunch of warnings and for the last plot did not work, I've attached the code and plot here.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 21, 2018 at 3:14 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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">Hi Anahita,<div>Change this:</div><span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">res@lbLabelBarOn        = False           ; turn off individual cb's</span><br></div></span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">to this:</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">res@lbLabelBarOn        = True          ; turn off individual cb's</span><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">and change this:</span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>resP@gsnPanelLabelBar = True</span><br></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">to this:</span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>resP@gsnPanelLabelBar = False</span><br></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">If you need titles for your labelbars you can use the same resources in resP but apply them to res. Thus:</span></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">res@lbTitleString    = "%"                ; title string</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">res@lbTitlePosition  = "Right"              ; title position</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">res@lbTitleFontHeightF= .02                ; make title smaller</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">res@lbTitleDirection = "Across"             ; title direction</div><br></span></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hope that helps. If you have any further queries please respond to ncl-talk.</span></span></span></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Adam</span></span></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_3863923464009688008m_-124667894139845533m_3065678731650277060m_2144239625786590355h5">On Fri, May 18, 2018 at 12:33 PM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3863923464009688008m_-124667894139845533m_3065678731650277060m_2144239625786590355h5"><div dir="ltr">Hi all,<div><br></div><div>For my plots, I used this scripts to create multiple panels with common label bar, this time i have panels those label bars are different, how can I add label bar individually under each panel? </div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>wks = gsn_open_wks("eps","Low_clouds<wbr>_ann")</div><div>;gsn_define_colormap(wks,"BlAq<wbr>GrYeOrRe")</div><div>gsn_define_colormap(wks,"BlWhR<wbr>e")</div><div> plot = new(4,graphic)   </div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;</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><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@cnLevelSelectionMode =  "AutomaticLevels"   ; AutomaticLevels</div><div><br></div><div><br></div><div>  res@cnLevelSelectionMode =  "ManualLevels"   ; AutomaticLevels</div><div>  res@cnMinLevelValF       = -20.              ; min level</div><div>  res@cnMaxLevelValF       =  20.               ; max level</div><div>  res@cnLevelSpacingF      =  2                ; interval</div><div><br></div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;</div><div><br></div><div>res@gsnLeftString       = "CAM4 F_compset"         ; change left string</div><div>plot(0) = gsn_csm_contour_map_ce(wks,low<wbr>_ann_cam4_F,res)</div><div>res@gsnLeftString       = "CAM4 E_compset"         ; change left string</div><div>plot(1) = gsn_csm_contour_map_ce(wks,low<wbr>_ann_cam4_E,res)</div><div>res@gsnLeftString       = "CAM5"         ; change left string</div><div>plot(2) = gsn_csm_contour_map_ce(wks,low<wbr>_ann_cam5,res)</div><div>res@gsnLeftString       = "GFDL"         ; change left string</div><div>plot(3) = gsn_csm_contour_map_ce(wks,low<wbr>_ann_gfdl,res)</div><div><br></div><div><br></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> </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@cnFillScaleF        = 0.6         ; add extra density</div><div>;  delete(alpha@long_name)</div><div>;  delete(alpha@units)  </div><div>  res2@gsnAddCyclic = False</div><div><br></div><div>plot2   = gsn_csm_contour(wks,alphat_low<wbr>_ann_cam4_F, res2) </div><div>plot2   = ShadeGtContour(plot2, 0.05, 17)  ; shade all areas less than the</div><div>                                             ; 0.05 contour level</div><div>plot3   = gsn_csm_contour(wks,alphat_low<wbr>_ann_cam4_E, res2) </div><div>plot3   = ShadeGtContour(plot3, 0.05, 17)</div><div><br></div><div>plot4   = gsn_csm_contour(wks,alphat_low<wbr>_ann_cam5, res2) </div><div>plot4   = ShadeGtContour(plot4, 0.05, 17)</div><div><br></div><div>plot5   = gsn_csm_contour(wks,alphat_low<wbr>_ann_gfdl, res2) </div><div>plot5   = ShadeGtContour(plot5, 0.05, 17)</div><div><br></div><div><br></div><div><br></div><div>overlay (plot(0), plot2)</div><div>overlay (plot(1), plot3)</div><div>overlay (plot(2), plot4)</div><div>overlay (plot(3), plot5)</div><div><br></div><div><br></div><div><br></div><div>;*****************************<wbr>*******************</div><div>; create panel</div><div>;*****************************<wbr>*******************</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>resP@txString         = "Low clolud changes"     </div><div>resP@lbTitleString    = "%"                ; title string</div><div>resP@lbTitlePosition  = "Right"              ; title position</div><div>resP@lbTitleFontHeightF= .02                ; make title smaller</div><div>resP@lbTitleDirection = "Across"             ; title direction</div><div>gsn_panel(wks,plot,(/2,2/),res<wbr>P)  </div><div><br></div><div><br></div><div>delete(plot)</div><div>delete(res)</div><div>delete(resP)</div><div>delete(wks)</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thank you,</div><div>Ana</div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="m_3863923464009688008m_-124667894139845533m_3065678731650277060m_2144239625786590355HOEnZb"><font color="#888888"><br><br clear="all"><span class="m_3863923464009688008HOEnZb"><font color="#888888"><span class="m_3863923464009688008m_-124667894139845533m_3065678731650277060HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_3863923464009688008m_-124667894139845533m_3065678731650277060m_2144239625786590355m_-6074403570469510214gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphill<wbr>i/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></font></span></font></span></div><span class="m_3863923464009688008HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_3863923464009688008HOEnZb"><font color="#888888"><br></font></span></div><span class="m_3863923464009688008HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_3863923464009688008HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_3863923464009688008m_-124667894139845533m_3065678731650277060gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphill<wbr>i/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_3863923464009688008gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>