[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 02:19:27 EDT 2013


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130529/0398bf29/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbarc colorbar.jpeg
Type: image/jpeg
Size: 572905 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130529/0398bf29/attachment-0003.jpeg 


More information about the gradsusr mailing list