<div dir="ltr"><div>Hi Mary,</div><div><br></div><div>This works great! I was hoping that this resource applied to more attributes about the plot than just the scale factor. Sure enough, it worked for the colorbar as well.</div><div><br></div><div>Thanks!</div><div><br></div><div>-Dan<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 24, 2018 at 7:59 AM Mary Haley <<a href="mailto:haley@ucar.edu">haley@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 class="gmail_default" style="font-size:small">Hi Dan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue is that the first plot in the list is always the one that gets used to determine the fill colors for the common labelbar. When you make that the blank plot, then, it fails. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've created a ticket to fix the code to handle this more gracefully (NCL-2768), but meanwhile I think you can work around this by telling gsn_panel to use a different plot for determining both the size and the colorbar:</div><div class="gmail_default" style="font-size:small"><br></div>pres@gsnPanelScalePlotIndex = 1<div><br></div><div><div class="gmail_default" style="font-size:small">The default is to use the first plot (0), so by setting it to 1, it will use the second plot in your array of plots.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If this doesn't work, then could you provide me with your script so I can see what else might be going on?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 23, 2018 at 1:53 PM, Daniel Adriaansen - NCAR <span dir="ltr"><<a href="mailto:dadriaan@ucar.edu" target="_blank">dadriaan@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"><div>Hello,</div><div><br></div><div>I am paneling some contour plots using gsn_panel. Each panel is a contour plot corresponding to different data from unique files. If a file is missing, in lieu of calling gsn_csm_contour, I call gsn_csm_blank_plot to keep the workspace symmetric. This works except when gsn_csm_blank_plot is the "upper-left-most" panel. In that case, gsn_panel fails and returns the error:</div><div><br></div><div>fatal:Variable (mono_fill_scl) is undefined<br></div><div><br></div><div>I found this old ncl-talk ticket from 2017:</div><div><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2017-April/008585.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/2017-April/008585.html</a></div><div><br></div><div>There it describes how the gsnPanelLabelBar resource doesn't play nicely when the plots being paneled are X-Y plots. Indeed, when I set this resource to False my code runs successfully, however I am not creating any X-Y plots. To make matters more confusing, if I call gsn_csm_blank plot in any other position than the "upper-left-most", then it works just fine. It's only when the "upper-left-most" panel is gsn_csm_blank_plot that my script fails.</div><div><br></div><div>It looks like based on the NCL documentation that "The common label bar is draw from the first plot, and
assumes all are the same." (<a href="https://www.ncl.ucar.edu/Applications/panel.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/panel.shtml</a>). Also on that page, I see a resource called "gsnPanelScalePlotIndex", which is used to control which plot in the list of plots to panel to obtain scale factor information from. Is there a way to control the same thing but for the common label bar?</div><div><br></div><div>Thanks in advance!</div><span class="m_-8276145005297388537HOEnZb"><font color="#888888"><div><br></div><div>-Dan<br></div></font></span></div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>
</blockquote></div>