<div>Maida</div><div><br></div><div>Are you sure that your variables "cpc" and "mod" have negative values?</div><div>From your code it appears (but I am not sure) that the variables are positive. As you know, the scatter plot won't move towards negative axis unless one of the variables have negative values. So may be you would like to confirm variable values first.</div>
<div><br></div><div>Good luck</div><div><br></div><div>Rashed</div><div><br></div><div><br></div><div><br></div><br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 12:26 PM, Maida Zahid <span dir="ltr"><<a href="mailto:maidazahid.pmd@gmail.com" target="_blank">maidazahid.pmd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Sir, <div><br></div><div> Thank you so much. I have used this link already for making scatter plot. The main problem is that scatter plot is plotting only positive values neglecting negative values whether i set vrange or not.</div>
<div><br></div><div>Regards<div><div class="h5"><br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 12:45 PM, Muhammad Afzaal <span dir="ltr"><<a href="mailto:afzaalkarori@gmail.com" target="_blank">afzaalkarori@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Maida<br clear="all"><font face="georgia, serif"><div><br></div><div>Following link would be useful for you;</div>
<div><br></div><div><a href="http://cookbooks.opengrads.org/index.php?title=Recipe-009:_Scatter_plot_with_linear_fit_and_basic_statistics" target="_blank">http://cookbooks.opengrads.org/index.php?title=Recipe-009:_Scatter_plot_with_linear_fit_and_basic_statistics</a>
</div><div><br></div><div><font face="georgia, serif"><br></font></div><div><font face="georgia, serif"><br></font></div>MUHAMMAD AFZAAL KARORI<br><br>Institute of Atmospheric Physics<br>Chinese Academy of Sciences<br>Beijing, China</font><div>
<font face="georgia, serif"><br></font></div><div><font face="georgia, serif">Pakistan Meteorological Department</font></div><div><font face="georgia, serif">Islamabad - Pakistan<br></font>
<br><br><div class="gmail_quote"><div><div>On Tue, Jul 31, 2012 at 12:10 PM, Maida Zahid <span dir="ltr"><<a href="mailto:maidazahid.pmd@gmail.com" target="_blank">maidazahid.pmd@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Dear all,<div><br></div><div><br></div><div> I am trying to draw scatter plot from two files. Following are the commands which i have used to plot it.</div><div><div> </div><div><div>xdfopen soilw.mon.mean.v2-2deg-197901-200512-JJAS.ctl</div>
<div>define cpc=ave(soilw,t=1,t=27)/100</div><div>xdfopen mrso_Lmon_bcc-csm1-1-2deg_historical_r1i1p1_197901-200512-JJAS.ctl</div><div>set dfile 2</div><div>define mod=ave(mrso,t=1,t=27)/100</div><div>set gxout scatter</div>
<div>set vrange -0.5 8</div><div>set vrange2 -2 20</div><div>d cpc;mod</div><div><br></div><div>output of this display is attached.</div><div>I am unable to set my axis for negative values.Every time it starts from 0 to positive values either I set the "vrange" to positive values or negative values.</div>
<div>How can i solve this problem?</div></div><div><br></div><div>grads version and Os details are:</div><div><div>Grads version:Grid Analysis and Display System (GrADS) Version 1.9b4</div><div>Linux OS: Linux cslogin 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux</div>
<br></div><div><br></div><div>Thanks in advance.</div><div><br></div>Regards<span><font color="#888888"><br><font face="arial, helvetica, sans-serif"><div>Maida Zahid</div></font><div><div>
<div><br></div></div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><font face="arial, helvetica, sans-serif"><div>------------------------------------------------------</div>
<div>Maida Zahid</div></font><div><div><div><font face="arial, helvetica, sans-serif">Assistant Director/Meteorologist</font></div>
<div><font face="arial, helvetica, sans-serif">Research & Development Division</font></div><div><font face="arial, helvetica, sans-serif">Pakistan Meteorological Department</font></div><div><font face="arial, helvetica, sans-serif">Sector H-8/2, Islamabad</font></div>
<div><font face="arial, helvetica, sans-serif">-------------------------------------------------------</font></div><div>Contact # : 051-9250334</div></div></div><div>-------------------------------------------------------</div>
<br>
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>