<br>Hello Eric,<div><br></div><div> Thank you for understanding my problem and valuable suggestion. As far as 'mrso' is concerned it is total soil moisture content (mrso) of one of the CMIP5 model output. </div>
<div>Now my question is that why my plot is showing two vertical (y-axis) and two horizontal lines (x-axis) although i have set the range.</div><div><br></div><div>I have attached another graph explaining my problem.</div>
<div><br></div><div>Regards</div><div>Maida</div><br class="Apple-interchange-newline"><div class="gmail_quote">On Fri, Aug 3, 2012 at 8:24 AM, Eric Altshuler <span dir="ltr"><<a href="mailto:ela@cola.iges.org" target="_blank">ela@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Maida,<br>
<br>
Your defined variable 'cpc' appears to be a time average of soil wetness (soilw), which can never be negative. What kind of field is 'mrso'? Your latest plot shows that cpc is always positive (or zero), which is expected, while mod is mostly positive but can be slightly negative. I don't think there's anything wrong with your plot.<br>
<br>
Best regards,<br>
<br>
Eric L. Altshuler<br>
Assistant Research Scientist<br>
Center for Ocean-Land-Atmosphere Studies<br>
4041 Powder Mill Road, Suite 302<br>
Calverton, MD 20705-3106<br>
USA<br>
<br>
E-mail: <a href="mailto:ela@cola.iges.org">ela@cola.iges.org</a><br>
Phone: (301) 902-1257<br>
Fax: (301) 595-9793<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: "Maida Zahid" <<a href="mailto:maidazahid.pmd@gmail.com">maidazahid.pmd@gmail.com</a>><br>
To: "GrADS Users Forum" <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Sent: Wednesday, August 1, 2012 1:34:45 AM<br>
Subject: Re: [gradsusr] Problem in setting vrange for negative values -scatterplot<br>
<br>
<br>
Rashed<br>
<br>
<br>
Thank you for replying. The data surely have negative values. You can see variables range from the following commands.<br>
<br>
<br>
<br>
ga-> set gxout scatter<br>
ga-> d cpc;mod<br>
-0.5 8 -15 50<br>
<br>
<br>
Output of the above mentioned commands is attached so that you can have a look at the range.<br>
<br>
<br>
Regards<br>
Maida<br>
<br>
On Wed, Aug 1, 2012 at 1:52 PM, Rashed Mahmood < <a href="mailto:rashidcomsis@gmail.com">rashidcomsis@gmail.com</a> > wrote:<br>
<br>
<br>
<br>
Maida<br>
<br>
<br>
Are you sure that your variables "cpc" and "mod" have negative values?<br>
>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.<br>
<br>
<br>
Good luck<br>
<br>
<br>
Rashed<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Aug 1, 2012 at 12:26 PM, Maida Zahid < <a href="mailto:maidazahid.pmd@gmail.com">maidazahid.pmd@gmail.com</a> > wrote:<br>
<br>
<br>
Dear Sir,<br>
<br>
<br>
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.<br>
<br>
<br>
Regards<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Aug 1, 2012 at 12:45 PM, Muhammad Afzaal < <a href="mailto:afzaalkarori@gmail.com">afzaalkarori@gmail.com</a> > wrote:<br>
<br>
<br>
Dear Maida<br>
<br>
<br>
<br>
Following link would be useful for you;<br>
<br>
<br>
<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><br>
<br>
<br>
<br>
<br>
<br>
MUHAMMAD AFZAAL KARORI<br>
<br>
Institute of Atmospheric Physics<br>
Chinese Academy of Sciences<br>
Beijing, China<br>
<br>
<br>
Pakistan Meteorological Department<br>
Islamabad - Pakistan<br>
<br>
<br>
<br>
<br>
<br>
On Tue, Jul 31, 2012 at 12:10 PM, Maida Zahid < <a href="mailto:maidazahid.pmd@gmail.com">maidazahid.pmd@gmail.com</a> > wrote:<br>
<br>
<br>
<br>
<br>
Dear all,<br>
<br>
<br>
<br>
<br>
I am trying to draw scatter plot from two files. Following are the commands which i have used to plot it.<br>
<br>
<br>
<br>
xdfopen soilw.mon.mean.v2-2deg-197901-200512-JJAS.ctl<br>
define cpc=ave(soilw,t=1,t=27)/100<br>
xdfopen mrso_Lmon_bcc-csm1-1-2deg_historical_r1i1p1_197901-200512-JJAS.ctl<br>
set dfile 2<br>
define mod=ave(mrso,t=1,t=27)/100<br>
set gxout scatter<br>
set vrange -0.5 8<br>
set vrange2 -2 20<br>
d cpc;mod<br>
<br>
<br>
output of this display is attached.<br>
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.<br>
How can i solve this problem?<br>
<br>
<br>
grads version and Os details are:<br>
<br>
Grads version:Grid Analysis and Display System (GrADS) Version 1.9b4<br>
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<br>
<br>
<br>
<br>
Thanks in advance.<br>
<br>
Regards<br>
<br>
Maida Zahid<br>
<br>
<br>
<br>
<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>
<br>
<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>
<br>
<br>
<br>
<br>
--<br>
<br>
--<br>
<br>
<br>
<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>
<br>
<br>
<br>
<br>
--<br>
<br>
<br>
<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>
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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>