<div dir="ltr">Hi Adam:<div><br></div><div>You were right, of course. I am not sure what I was thinking. Here is my updated plot.</div><div>Many thanks again,</div><div>Laura</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 27, 2018 at 12:30 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 Laura,<div>You have to create <i>and draw</i> the plots with the 1st colormap before you switch to the 2nd colormap and create the last two plots. </div><div><br></div><div>Looking at test.ncl (and going with the 4-panel plot you're now making) you need to call gsn_panel and draw plot_B(:1) before you switch the colormap and create plot_B(2:3). Order of script:</div><div>1) Create plot_B(0) and plot_B(1).</div><div>2) Set gsnPanelTop and gsnPanelBottom; call gsn_panel and draw those two plots.</div><div>3) Switch the colormap.</div><div>4) Create plot_B(2) and plot_B(3).</div><div>5) Set gsnPanelTop and gsnPanelBottom; call gsn_panel and draw plot_B(2:3).</div><div>6) Advance the frame. </div><div><br></div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 27, 2018 at 12:20 PM Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Adam:<div><br></div><div>Unfortunately, it did not work for me. I may have misunderstood the changes that I needed to make. In my script, I call gsn_define_colormap before plotting the individual plots since I have a colorbar under each individual plot. So even when I called gsn_panel for the first 4 plots, I still get the colorbar that I called last.</div><div><br></div><div>Here is the updated plot where now the 4 top plots use the one I assigned to the difference plot. See test.ncl in <span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/gpfs/fs1/scratch/laura/</span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Many thanks,</span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Laura</span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(1,25,147);font-family:Courier;font-size:14px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 27, 2018 at 11:58 AM, 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 Laura,<div>Yes, you should call gsn_panel twice, drawing the first 4 plots in the first call and the last two plots in the second call. Something like this:</div><div><br></div><div>; create plots 1-4</div><div><br></div><div>panres = True</div><div>panres@gsnFrame = False</div><div>panres@gsnPanelTop = .95</div><div>panres@gsnPanelBottom = .35</div><div>gsn_panel(wks,plot(:3),(/2,2/)<wbr>,panres)</div><div><br></div><div>; switch colormap and create plots 5-6</div><div><br></div><div><div>panres@gsnPanelTop = .35</div><div>panres@gsnPanelBottom = .05</div></div><div>gsn_panel(wks,plot(4:),(/1,2/)<wbr>,panres)<br></div><div>frame(wks)</div><div><br></div><div>The gsnPanelTop/gsnPanelBottom settings for each gsn_panel call might have to be adjusted. </div><div>Hope that helps, if you have further questions let ncl-talk know.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 27, 2018 at 11:49 AM Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">Hello:</div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">I am attaching a plot that shows 6 different plots in one panel plot. The two bottom plots e) and f) are differences of the two plots above them. The plots a) b), c), and d) use my user define colorbar.</div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">Is there a way to use the colorbar precip_diff_12lev instead of my own colorbar for the bottom 2 plots so that I can have white in the middle since it is a different plot while using my own colorbar for the top 4 plots? When I redefine gsn_colormap before plotting the last 2 plots, then all 6 plots use colorbar precip_diff_12lev? I put my ncl script in <span style="font-variant-ligatures:no-common-ligatures;color:rgb(1,25,147);font-family:Courier;font-size:14px">/gpfs/fs1/scratch/laura/<wbr>panel.dqvcup.ncl </span>in case one wants to take a pick?</div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thanks,</span></div><div style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Laura</span></div><div><br></div><br clear="all"><div><br></div>-- <br><div class="m_-1132485569621371737m_1459569297439963366m_-4807547803528376999m_8152836243877420259gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><br></div></div></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/<wbr>mailman/listinfo/ncl-talk</a><span class="m_-1132485569621371737m_1459569297439963366HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="m_-1132485569621371737m_1459569297439963366HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1132485569621371737m_1459569297439963366m_-4807547803528376999gmail_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>
</font></span></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-1132485569621371737m_1459569297439963366gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font><br></div></div></div>
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1132485569621371737gmail_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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div>
</div>