<div dir="ltr"><div dir="ltr">Hi Toni,<div>The overlay procedure allows you to overlay as many plots as you want on one base plot.  Here's an example from a script of mine:</div><div><div>map_n34sc_jja0 = gsn_csm_contour_map(wks_n34sc,n34sc_sst(6,:,:),scres)    ; 6 = JJA 0    </div><div>o1 = gsn_csm_contour(wks_n34sc,n34sc_tas(6,:,:),scres2)  </div><div>o2 = gsn_csm_contour(wks_n34sc,n34sc_psl(6,:,:),scres3) </div><div>overlay(map_n34sc_jja0,o1)</div><div>overlay(map_n34sc_jja0,o2)</div><div>draw(map_n34sc_jja0)</div></div><div>frame(wks)</div><div><br></div><div>When you say it did not work correctly, can you elaborate? </div><div><br></div><div>Also, if you are paneling, and the exact location of each plot from one frame to the next is not changing, you can try the following:</div><div><br></div><div>panres = True</div><div>panres@gsnFrame = False</div><div><br></div><div>gsn_panel(wks,grass,(/2,2/),panres)</div><div>gsn_panel(wks,shrubs,(/2,2/),panres)<br></div><div>gsn_panel(wks,trees,(/2,2/),panres)<br></div><div>frame(wks)</div><div><br></div><div>This will overlay the 3 sets of panel plots, titles and all. You would want to alter the opacity of the colors for the two overlaid plots.</div><div>Hope that helps!</div><div>Adam</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 11:51 AM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu">toni-klemm@tamu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hello!<div><br></div><div>I emailed earlier (see below) about a complex graphics problem, plotting 3 variables in one Hovmueller plot and then four Hovmueller plots into one panel (I didn’t mention the panel). After some offline advice I tried <font face="Courier">gsn_attach_plots</font> and <font face="Courier">overlay</font><font>, but unfortunately neither worked.</font></div><div><br></div><div><div><font face="Courier">gsn_attach_plots</font> only plotted the charts connected along the X *or* Y axis, but not both at the same time (so that they would basically be on top of each other). o<font face="Courier">verlay</font> only allowed me to overlay 2 plot, but I needed 3.</div><div><br></div><div>My laborious solution was creating 3 sets of panel plot, one for each of the 3 variables, separately in NCL, and then layering them on top of each other in Photoshop and removing the white space in the plots so that the underlying layer becomes visible. I also rearranged the color bars and named them.</div><div><br></div><div>I attached a sample plot. If anyone knows how to automate all of this in NCL, I would be very grateful.</div><div><br class="m_2832540528360178230webkit-block-placeholder"></div><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="background-color:rgb(255,255,255)"><font>Thanks in advance,</font></span></div><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="background-color:rgb(255,255,255)"><font>Toni</font></span></div><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="background-color:rgb(255,255,255)"><font><br class="m_2832540528360178230Apple-interchange-newline"><font color="#333300"><br></font></font></span></div><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#333300"><b style="background-color:rgb(255,255,255)">Toni Klemm</b><b><span style="background-color:rgb(255,255,255)">, </span><span style="background-color:rgb(255,255,255)">Ph.D.</span></b></font><div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Postdoctoral Research Associate</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Department of Ecosystem Science and Management</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">College of Agriculture and Life Sciences</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Texas A&M University, College Station, TX</font></span></div><div style="color:rgb(0,0,0)">Contributor to the <a href="https://www.eccforum.org/" target="_blank">Early Career Climate Forum</a></div><div style="color:rgb(0,0,0)"><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)"><a href="http://www.toni-klemm.de/" target="_blank">www.toni-klemm.de</a> | </span><a href="https://twitter.com/ToniKlemm" target="_blank">@toniklemm</a></div></div></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(0,0,0);font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div></div></div></div></div></div></div><img id="m_28325405283601782304F6737C4-2C87-4F5A-A55D-54FB03DA9904" src="cid:35A4E2F4-5FF2-4AF2-A584-DF6B10560AA5"></div><br class="m_2832540528360178230Apple-interchange-newline"><br class="m_2832540528360178230Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Sep 10, 2018, at 6:50 PM, Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.edu</a>> wrote:</div><br class="m_2832540528360178230Apple-interchange-newline"><div><div style="word-wrap:break-word;line-break:after-white-space">Hello!<div><br></div><div>I’m trying to plot three variables, percentages of land cover of grasses, shrubs, and trees, into one Hovmueller plot (<a href="https://www.ncl.ucar.edu/Applications/time_lon.shtml" target="_blank">gsn_csm_hov</a>, longitude vs. years). I have the data arranged such that each grid point will only show one land cover type, namely the one with the largest percentage. In principle, this is similar to the <a href="http://www.cpc.ncep.noaa.gov/products/predictions/long_range/lead14/index.php" target="_blank">seasonal tercile forecasts by the US Climate Prediction Center</a> that show the likelihood for above, below, and near normal temperature (see the map attached). The difference in my case is I need to plot time vs. longitude, not latitude vs. longitude.</div><div><br></div><div>I would appreciate any help for integrating three variables into one plot. Each variable will also need its own legend (like in the map).</div><div><br></div><div>Thank you very much!</div><div><div><br class="m_2832540528360178230webkit-block-placeholder"></div><div>Toni</div><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br class="m_2832540528360178230Apple-interchange-newline"><br></font></div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate</font></div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Department of Ecosystem Science and Management</div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">College of Agriculture and Life Sciences</div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Texas A&M University, College Station, TX</div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri">Contributor to the <a href="http://www.eccforum.org/" target="_blank">Early Career Climate Forum</a><br><a href="http://www.toni-klemm.de/" target="_blank">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" target="_blank">@toniklemm</a></font></div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div></div></div><br class="m_2832540528360178230Apple-interchange-newline"></div><span id="m_2832540528360178230cid:426FC520-B28D-4535-A305-3F72FE1D0260"><off15_temp.gif></span></div><br class="m_2832540528360178230Apple-interchange-newline"></div><br class="m_2832540528360178230Apple-interchange-newline"><br class="m_2832540528360178230Apple-interchange-newline">
</div>
<span id="m_2832540528360178230cid:E75B52E0-E970-400C-A892-E4A216D3A44B"><Screen Shot 2018-09-10 at 6.28.47 PM.png></span></div></div></div></blockquote></div><br></div></div>_______________________________________________<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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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/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>