<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks. I didn’t see that. Mira should try that then.<div class=""><br class=""></div><div class="">Jack</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 27 Aug 2015, at 16:01, Alan Brammer &lt;<a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:verdana,sans-serif"><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-family: verdana, arial, sans-serif;" class="">cnLevelSpacingF still applies jn AutomaticLevels.&nbsp; That is the resource you want to delete if you want NCL to also choose the spacing as well as the min/max levels.&nbsp; You don't need to delete the selectionMode before resetting it.&nbsp; See below for the documentation on cnLevelSpacingF.&nbsp;</dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-family: verdana, arial, sans-serif;" class=""><span style="line-height:13pt;margin:0px;padding:0px" class=""><a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" class="">https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF</a></span><br class=""></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class=""><br class=""></strong></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class=""><br class=""></strong></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class="">cnLevelSpacingF</strong></dt><dd style="margin: 0px 0px 0px 25px; padding: 0px; line-height: 16px;" class="">When the&nbsp;<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a>&nbsp;is&nbsp;<code style="margin:0px;padding:0px" class="">ManualLevels</code>&nbsp;or when the&nbsp;<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a>&nbsp;is&nbsp;<code style="margin:0px;padding:0px" class="">AutomaticLevels</code>, and<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a>&nbsp;is explicitly set,&nbsp;<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a>&nbsp;determines the spacing between contour intervals. Otherwise, the<a href="https://www.ncl.ucar.edu/Document/HLUs/Classes/ContourPlot.shtml" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><strong style="margin:0px;padding:0px" class="">ContourPlot</strong></a>&nbsp;object sets the value of&nbsp;<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a>&nbsp;based on the contour levels actually chosen. When the<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a>&nbsp;is&nbsp;<code style="margin:0px;padding:0px" class="">ExplicitLevels</code>,&nbsp;<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a>&nbsp;will be set to the arithmetic average of the spacing between levels.<p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);line-height:12pt" class="">Default: 5.0</p></dd></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Aug 27, 2015 at 7:35 AM, Jack Ogaja <span dir="ltr" class="">&lt;<a href="mailto:jack.ogaja@gmail.com" target="_blank" class="">jack.ogaja@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try,<br class="">
<br class="">
&nbsp; &nbsp; delete(qfres@cnLevelSelectionMode)&nbsp; &nbsp;;&lt;=== Delete the resource before resetting<br class="">
&nbsp; &nbsp; qfres@cnLevelSelectionMode = “AutomaticLevels"<br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
Jack<br class="">
</font></span><div class="HOEnZb"><div class="h5"><br class="">
&gt; On 27 Aug 2015, at 05:01, <a href="mailto:mberdahl@envsci.rutgers.edu" class="">mberdahl@envsci.rutgers.edu</a> wrote:<br class="">
&gt;<br class="">
&gt; Hi all,<br class="">
&gt;<br class="">
&gt; I'm trying to make a 3-panel plot, where the top two panels have user<br class="">
&gt; define contour intervals (which I can make work, I think), but the bottom<br class="">
&gt; panel I'd like to have automatically generated.&nbsp; The way I've tried is to<br class="">
&gt; simply change the setting the LevelSelectionMode back to "AutomaticLevels"<br class="">
&gt; before calling that final plot, but it doesn't seem to change back to<br class="">
&gt; being automatic.&nbsp; &nbsp;Here is a snippet of my code showing how I try to do<br class="">
&gt; this.&nbsp; Any recommendations on how to switch between different modes for<br class="">
&gt; automatic and manual contour selection for different panels is greatly<br class="">
&gt; appreciated.<br class="">
&gt;<br class="">
&gt; Best,<br class="">
&gt; Mira<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; qfres@cnLevelSelectionMode = "ManualLevels"&nbsp; &nbsp;; set contour levels manually<br class="">
&gt; qfres@cnMinLevelF = 0.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; set hte min contour level<br class="">
&gt; qfres@cnMaxLevelF = 1.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; set the max contour level<br class="">
&gt; qfres@cnLevelSpacingF = 0.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; set the contour interval<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; contour_qf_hi = gsn_csm_contour(wks,qAvgTime_hi,qfres)<br class="">
&gt; contour_qf_lo = gsn_csm_contour(wks,qAvgTime_lo,qfres)<br class="">
&gt;<br class="">
&gt; plot(0) = gsn_csm_contour(wks,qAvgTime_hi,qfres)<br class="">
&gt; plot(1) = gsn_csm_contour(wks,qAvgTime_lo,qfres)<br class="">
&gt;<br class="">
&gt; qfres@cnLevelSelectionMode = "AutomaticLevels"&nbsp; &nbsp; &nbsp; &nbsp; ; set it back to automatic<br class="">
&gt; level contour spacing for the difference plot.<br class="">
&gt; contour_qf_diff = gsn_csm_contour(wks,diff_q,qfres)<br class="">
&gt; plot(2) = gsn_csm_contour(wks,diff_q,qfres)<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; _______________________________________________<br class="">
&gt; ncl-talk mailing list<br class="">
&gt; <a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
&gt; List instructions, subscriber options, unsubscribe:<br class="">
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</div></div></blockquote></div><br class=""></div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>