[gradsusr] how to remove x-axis and y-axis (lines) of a "cbarc" color-bar?

Mohsen Soltani soltani.clima at gmail.com
Thu May 30 11:45:46 EDT 2013


Dear Jennifer,

I installed GrADS version 2.0.a9.oga.1., and then used "set clab masked"
command. It worked perfectly! See the attached plot...

Thanks for your nice suggestion,
Mohsen

--
some are weather-wise some are otherwise!
--
Best Wishes,
(Mr.) Mohsen Soltani
Climatology Grad Student (M.Sc.),
Faculty of Geography, University of Tehran, Tehran, Iran
Tel: (+98) 9119772934
e-mail: soltani.clima at gmail.com


On Thu, May 30, 2013 at 7:04 AM, Mohsen Soltani <soltani.clima at gmail.com>wrote:

> W
> here can I download GrADS version 2.0a7.1.? Would you please provide me
> the related link to download?
>
>
>
> --
> some are weather-wise some are otherwise!
> --
> Best Wishes,
> (Mr.) Mohsen Soltani
> Climatology Grad Student (M.Sc.),
> Faculty of Geography, University of Tehran, Tehran, Iran
> Tel: (+98) 9119772934
> e-mail: soltani.clima at gmail.com
>
>
> On Thu, May 30, 2013 at 6:54 AM, Jennifer Adams <jma at cola.iges.org> wrote:
>
>> The 'set clab masked' command was introduced with version 2.0.a7.1.
>> --Jennifer
>>
>>
>> On May 30, 2013, at 9:37 AM, Mohsen Soltani wrote:
>>
>> Yes! I did it, of course with your help, otherwise it was impossible!
>> Thank you. Actually, I've used this "set clab masked" command several times
>> before. But, you know, I'm afraid it doesn't work for me! It seems that it
>> doesn't work in windows....
>> FYI: I'm using Windows and GrADS 2.0a3.oga.1
>>
>> Thanks,anyway, for your time, consideration and kindness,
>>
>> Mohsen
>>
>> --
>> some are weather-wise some are otherwise!
>> --
>> Best Wishes,
>> (Mr.) Mohsen Soltani
>> Climatology Grad Student (M.Sc.),
>> Faculty of Geography, University of Tehran, Tehran, Iran
>> Tel: (+98) 9119772934
>> e-mail: soltani.clima at gmail.com
>>
>>
>> On Thu, May 30, 2013 at 4:20 AM, Jennifer Adams <jma at cola.iges.org>wrote:
>>
>>> That looks very good! Why not add 'set clab masked' and then you won't
>>> have overlapping contour labels and GrADS will omit the white boxes behind
>>> the labels and just interrupt the contour line instead. You'll see, it will
>>> look much cleaner. --Jennifer
>>>
>>>
>>> On May 30, 2013, at 2:19 AM, Mohsen Soltani wrote:
>>>
>>> Hello Jennifer,
>>>
>>> At last I could produce a plot with a "cbarc colorbar" with flying
>>> colors! Please see the attached plot.
>>>
>>>
>>> Thank you so much!
>>> Mohsen
>>>
>>> --
>>> some are weather-wise some are otherwise!
>>> --
>>> Best Wishes,
>>> (Mr.) Mohsen Soltani
>>> Climatology Grad Student (M.Sc.),
>>> Faculty of Geography, University of Tehran, Tehran, Iran
>>> Tel: (+98) 9119772934
>>> e-mail: soltani.clima at gmail.com
>>>
>>>
>>> On Wed, May 29, 2013 at 12:00 PM, Jennifer Adams <jma at cola.iges.org>wrote:
>>>
>>>> Looking at cbarc.gs (from the GrADS library), it looks as though this
>>>> code is already in there.
>>>>
>>>> 'set line 'bc' 1 12'
>>>> x1 = xc - aa
>>>> xe = xc + 0.01
>>>> y1 = yc - aa
>>>> 'draw polyf 'x1' 'yc' 'xe' 'yc' 'xe' 'y1
>>>> 'set line 1 1 6'
>>>> 'draw line 'x1' 'yc' 'xc' 'y1
>>>>
>>>> So, I'm not really sure why it isn't working for you. The triangle is
>>>> drawn using the background color, 'bc'. That is set to '0' by default (look
>>>> at the parsing of the args in the beginning of the script.)
>>>> --Jennifer
>>>>
>>>>
>>>> On May 29, 2013, at 2:46 PM, Mohsen Soltani wrote:
>>>>
>>>> Dear Jennifer,
>>>>
>>>> Thank you for your help. But I'm still having problem to do it!
>>>> Should I use it like that without changing? Or I have to make some
>>>> changes in the script you provided? If so, where and which part of the
>>>> script should be edited? And finally, in your opinion, in which part of my
>>>> script should be added? I mean, before/after display, and or before/after
>>>> run cbarc?
>>>>
>>>> Would you please help me?
>>>>
>>>>
>>>> Thank you!
>>>> Mohsen
>>>>
>>>> --
>>>> some are weather-wise some are otherwise!
>>>> --
>>>> Best Wishes,
>>>> (Mr.) Mohsen Soltani
>>>> Climatology Grad Student (M.Sc.),
>>>> Faculty of Geography, University of Tehran, Tehran, Iran
>>>> Tel: (+98) 9119772934
>>>> e-mail: soltani.clima at gmail.com
>>>>
>>>>
>>>> On Wed, May 29, 2013 at 9:27 AM, Jennifer Adams <jma at cola.iges.org>wrote:
>>>>
>>>>> The 2nd plot that you like (from wxmaps.org) draws a filled polygon
>>>>> over the corner of the plot before drawing the colorbar.
>>>>>
>>>>>
>>>>> **
>>>>> ** Chop off the corner
>>>>> **
>>>>> 'set line 99 1 12'
>>>>> x1 = xc - aa
>>>>> xe = xc + 0.03
>>>>> y1 = yc - aa
>>>>> 'draw polyf 'x1' 'yc' 'xe' 'yc' 'xe' 'y1
>>>>> 'set line 1 1 6'
>>>>> if (_titbarlen = 10.950)
>>>>>   'draw line 'x1' 'yc' 'xc' 'y1
>>>>> endif
>>>>> **
>>>>>
>>>>> --Jennifer
>>>>>
>>>>> On May 29, 2013, at 2:41 AM, Mohsen Soltani wrote:
>>>>>
>>>>> Dear All,
>>>>>
>>>>> I used "cbarc" to run color-bar on the map (see the attached file
>>>>> number 1). I adjusted the position of the color-bar where I wanted to. But,
>>>>> I'd like my color-bar (file number 1) to be something like the enclosed
>>>>> file number 2.
>>>>>
>>>>> On the other hand, if we assume the color-bar's background as a
>>>>> triangle, I want the two lines (x-axis and y-axis) to be omitted/removed.
>>>>> How can I do that?
>>>>>
>>>>>
>>>>> Any suggestion?
>>>>>
>>>>>
>>>>> Mohsen
>>>>>
>>>>> --
>>>>> some are weather-wise some are otherwise!
>>>>> --
>>>>> Best Wishes,
>>>>> (Mr.) Mohsen Soltani
>>>>> Climatology Grad Student (M.Sc.),
>>>>> Faculty of Geography, University of Tehran, Tehran, Iran
>>>>> Tel: (+98) 9119772934
>>>>> e-mail: soltani.clima at gmail.com
>>>>>  <file number 1.jpeg><file number 2.jpg>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>>
>>>>>  --
>>>>> Jennifer M. Adams
>>>>> IGES/COLA
>>>>> 4041 Powder Mill Road, Suite 302
>>>>> Calverton, MD 20705
>>>>> jma at cola.iges.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>>  --
>>>> Jennifer M. Adams
>>>> IGES/COLA
>>>> 4041 Powder Mill Road, Suite 302
>>>> Calverton, MD 20705
>>>> jma at cola.iges.org
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>> <cbarc colorbar.jpeg>_______________________________________________
>>>
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>>  --
>>> Jennifer M. Adams
>>> IGES/COLA
>>> 4041 Powder Mill Road, Suite 302
>>> Calverton, MD 20705
>>> jma at cola.iges.org
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>>  --
>> Jennifer M. Adams
>> IGES/COLA
>> 4041 Powder Mill Road, Suite 302
>> Calverton, MD 20705
>> jma at cola.iges.org
>>
>>
>>
>>
>> _______________________________________________
>> 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/20130530/dc73fd09/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbarc colorbar.jpeg
Type: image/jpeg
Size: 552430 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130530/dc73fd09/attachment-0003.jpeg 


More information about the gradsusr mailing list