<span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 24px;"><font size="4" style="line-height: 30px;">Hi,all:</font></span><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"></span><div><font size="4"><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height: 30px;">&nbsp; &nbsp; I am wondering how to&nbsp;plot xy2 plot with 1D data?</span></font></font></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">&nbsp;&nbsp; I want to compare wrfout data with observed data in a xy2 plot with time as the X axis,</font></span></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">but the observed data are 1D without time &nbsp;demension in a .txt file, a data per hour .</font></span></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">&nbsp; &nbsp; I have &nbsp;extract the wrfout data as 1D data in a .txt file :</font></span></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">;;;;;;;;;;;;;;;;;;;;;</font></span></div><div><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;"><div>ascii_file = "temp.txt"</div><div>str = new(ntimes, "string")</div><div>&nbsp; do it =0, ntimes-1,1 &nbsp; &nbsp; &nbsp; &nbsp;; TIME LOOP</div></span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;"><div>t2= wrf_user_getvar(a,"T2",it)</div><div>&nbsp; &nbsp; &nbsp; t2= t2-273.15</div><div>&nbsp; &nbsp; &nbsp; t2@units = "c"&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>tt2=t2(it,98, 98)</div><div>&nbsp; &nbsp; end if</div><div>&nbsp; &nbsp;str(it) = sprintf("%12.8f", tt2)</div><div>end do&nbsp;</div></span></font></div><div><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 24px;"><font size="4" style="line-height: 30px;">&nbsp; &nbsp;</font></span><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;">asciiwrite(ascii_file, str)</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;">;;;;;;;;;;;;;;;;;;;;;;;</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;"><br></span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei" size="4"><span style="line-height: 30px;">How can I plot the xyplot&nbsp;</span></font><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: large; line-height: 30px;">with time as the X axis while data do not have time demension with the "</span><span style="white-space: pre-wrap; line-height: normal;">plot = gsn_csm_xy2(wks,time,t2,tob,resL,resR)</span><span style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; font-size: large; line-height: 30px;">"</span></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><br></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">&nbsp; &nbsp;Or do you guys have some advice?</font></span></div><div style="font-family: 'lucida Grande', Verdana, 'Microsoft YaHei'; line-height: 23px;"><span style="line-height: 24px;"><font size="4" style="line-height: 30px;">&nbsp;&nbsp;&nbsp; any information will be appreciated</font></span></div>