[gradsusr] Problem in setting vrange for negative values -scatterplot

Maida Zahid maidazahid.pmd at gmail.com
Wed Aug 1 01:34:45 EDT 2012


Rashed

 Thank you for replying. The data surely have negative values. You can see
variables range from the following commands.

ga-> set gxout scatter
ga-> d cpc;mod
*-0.5 8 -15 50 *

Output of the above mentioned commands is attached so that you can have a
look at the range.

Regards
Maida

On Wed, Aug 1, 2012 at 1:52 PM, Rashed Mahmood <rashidcomsis at gmail.com>wrote:

> Maida
>
> Are you sure that your variables "cpc" and "mod" have negative values?
> 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.
>
> Good luck
>
> Rashed
>
>
>
>
>
> On Wed, Aug 1, 2012 at 12:26 PM, Maida Zahid <maidazahid.pmd at gmail.com>wrote:
>
>> Dear Sir,
>>
>>     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.
>>
>> Regards
>>
>>


> On Wed, Aug 1, 2012 at 12:45 PM, Muhammad Afzaal <afzaalkarori at gmail.com>wrote:
>>
>>> Dear Maida
>>>
>>> Following link would be useful for you;
>>>
>>>
>>> http://cookbooks.opengrads.org/index.php?title=Recipe-009:_Scatter_plot_with_linear_fit_and_basic_statistics
>>>
>>>
>>>
>>> MUHAMMAD AFZAAL KARORI
>>>
>>> Institute of Atmospheric Physics
>>> Chinese Academy of Sciences
>>> Beijing, China
>>>
>>> Pakistan Meteorological Department
>>> Islamabad - Pakistan
>>>
>>>
>>> On Tue, Jul 31, 2012 at 12:10 PM, Maida Zahid <maidazahid.pmd at gmail.com>wrote:
>>>
>>>> Dear all,
>>>>
>>>>
>>>>   I am trying to draw scatter plot from two files. Following are the
>>>> commands which i have used to plot it.
>>>>
>>>> xdfopen soilw.mon.mean.v2-2deg-197901-200512-JJAS.ctl
>>>> define cpc=ave(soilw,t=1,t=27)/100
>>>> xdfopen
>>>> mrso_Lmon_bcc-csm1-1-2deg_historical_r1i1p1_197901-200512-JJAS.ctl
>>>> set dfile 2
>>>> define mod=ave(mrso,t=1,t=27)/100
>>>> set gxout scatter
>>>> set vrange -0.5 8
>>>> set vrange2 -2 20
>>>> d cpc;mod
>>>>
>>>> output of this display is attached.
>>>> 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.
>>>> How can i solve this problem?
>>>>
>>>> grads version and Os details are:
>>>> Grads version:Grid Analysis and Display System (GrADS) Version 1.9b4
>>>> 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
>>>>
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards
>>>> Maida Zahid
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>> ------------------------------------------------------
>> Maida Zahid
>> Assistant Director/Meteorologist
>> Research & Development Division
>> Pakistan Meteorological Department
>> Sector H-8/2, Islamabad
>> -------------------------------------------------------
>> Contact # : 051-9250334
>> -------------------------------------------------------
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120801/55a7688a/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corr.png
Type: image/png
Size: 9222 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20120801/55a7688a/attachment-0003.png 


More information about the gradsusr mailing list