<div dir="ltr">Hi:<div><br></div><div>Now I believe I understand.</div><div><br></div><div>A "yx" plot is simply one where the axis against which the variable is plotted is in the y, rather than x position. I had tried this, but I had forgotten to change my settings for max/min, so m curves were not bounded correctly. </div><div><br></div><div>Here is the code that works.</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">;---To </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> multiple lines, you must put them into a multidimensional array.</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>data<span class="gmail-Apple-converted-space"> </span>= new((/2,nz/),float)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>data(0,:) = qc_1(:)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>data(1,:) = qc_2(:)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>xaxis = new(nz,integer)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>do i = 0,nz-1,1</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>xaxis(i) = i ; here the "xaxis" is simply set to an integer model level value.</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>end do</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">;---Set </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ting parameters</span></p><p class="gmail-p2" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0);min-height:26px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res <span class="gmail-Apple-converted-space"> </span>= True<span class="gmail-Apple-converted-space"> </span>; </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> mods desired</span></p><p class="gmail-p2" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0);min-height:26px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@tmXTOn<span class="gmail-Apple-converted-space"> </span>= False</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@tmYLFormat<span class="gmail-Apple-converted-space"> </span>= "f"<span class="gmail-Apple-converted-space"> </span>; remove trailing ".0"</span></p><p class="gmail-p2" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0);min-height:26px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>min_h = min(data(:,:))</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>max_h = max(data(:,:))</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@trYMinF <span class="gmail-Apple-converted-space"> </span>= 0.</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@trYMaxF <span class="gmail-Apple-converted-space"> </span>= nz</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@trXMinF <span class="gmail-Apple-converted-space"> </span>= 0 <span class="gmail-Apple-converted-space"> </span>; set minimum X-axis value</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@trXMaxF <span class="gmail-Apple-converted-space"> </span>= max_h ; based on maximum mass of plotted variable</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>label = (/"WRF Standard","WRF SLA"/)</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>colors = (/"blue","red"/)</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLabelMode<span class="gmail-Apple-converted-space"> </span>= "Custom" <span class="gmail-Apple-converted-space"> </span>; label a line</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyExplicitLabels <span class="gmail-Apple-converted-space"> </span>= label<span class="gmail-Apple-converted-space"> </span>; text to use</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLineLabelFontHeightF = 0.0150<span class="gmail-Apple-converted-space"> </span>; font height</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLineColors <span class="gmail-Apple-converted-space"> </span>= colors<span class="gmail-Apple-converted-space"> </span>; label color</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLineLabelFontColors <span class="gmail-Apple-converted-space"> </span>= colors<span class="gmail-Apple-converted-space"> </span>; label color</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">
</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">; res@tiYAxisString = "QC Total [g cm~S~-3~N~]"</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">; res@tiXAxisString = "Time Interval (five minutes)"</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@tiXAxisString = "QC Total [g cm~S~-3~N~]"<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@tiYAxisString = "Model Level"</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)">
</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@tiMainString = "weno = " + total_qc_1 + " - sla = " + total_qc_2</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">; Similar resources are xyLineThicknessF and xyLineColor,</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">; which will affect all lines in the array.</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">;</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLineThicknesses = (/<span class="gmail-Apple-converted-space"> </span>3.0, <span class="gmail-Apple-converted-space"> </span>3.0/)</span></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>res@xyLineColors<span class="gmail-Apple-converted-space"> </span>= (/"blue","red"/)</span></p><p class="gmail-p2" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0);min-height:26px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p><p class="gmail-p1" style="margin:0px;font:23px "Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">;</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>= gsn_csm_xy (wks,xaxis,data,res) ; create </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">
</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>= gsn_csm_xy (wks,data,xaxis,res) ; create </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">plot</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:23px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 1:33 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dave:<div><br></div><div>Thank you for your suggestions.</div><div><br></div><div>I found something under "profile plots." The first example here is similar to what I am looking for. </div><div><br></div><div><a href="http://www.hao.ucar.edu/modeling/tgcm/NCL/Graphics/profile.shtml" target="_blank">http://www.hao.ucar.edu/modeling/tgcm/NCL/Graphics/profile.shtml</a></div><div><br></div><div> Note, Ozone is a function of height. Hence, the ozone concentration is plotted against the x axis, rather than the y axis as shown in the examples on <br></div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/xy.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/xy.shtml</a><br></div><div><br></div><div>Perhaps there is an appropriate example on your "ncl" page as well?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 8:09 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Oh. If you just want a simple line plot, please see example xy_3 on the XY plots example page.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 9:22 AM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Barry,<div><br></div><div>The term "vertical profiles" is vague. See if any of these categories on the NCL examples main web page are close to what you are looking for:<br><br> Latitude vs. time<br> Press/height vs. latitude<br> Press/height vs. longitude<br> Press/height vs. time<br> Time vs. longitude (Hovmueller)</div><div> Time vs. latitude<br> Transects & Cross Sections<br> Vertical interpolation<br></div></div><div><br></div><div>Otherwise, please say what specific quantities you expect on the X axis, the Y axis, and the displayed field magnitude or contour levels. Alternatively it would be helpful if you could find and point to an on-line image, anywhere, of the type of plot you need.</div><div><br></div><div>--Dave</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 5:27 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I've been searching the ncl pages for how to create a vertical yx profile.</div><div><br></div><div>In other words, the variable is plotted against the y axis rather than the x axis.</div><div><br></div><div>Right now, I have no problem making an xy plot, with multiple curves, but I need to map them against the y versus x axis.</div><div><br></div><div>Thank you,</div><div><br></div><div>Barry</div></div>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_865311791303388115gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>