Re: black and white and color shading polar plot without grid lines

From: Will Hobbs <Will.Hobbs_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 19 2012 - 20:25:31 MST

Waqar

Just set the 'gsnContourZeroLineThicknessF' resource to 0.

There are a number of very useful high level 'gsnContour...' resources for various contour line effects, so it's well worth taking a look for future reference.

Will

From: Waqar Younas <vickyqau@gmail.com<mailto:vickyqau@gmail.com>>
Date: Thursday, 20 December 2012 2:18 PM
To: Adam Phillips <asphilli@ucar.edu<mailto:asphilli@ucar.edu>>
Cc: "ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>" <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: Re: black and white and color shading polar plot without grid lines

Thank you very much.
Everything is OK now.
One more question is how to remove the contour lines with zero value?
Thanks.

On Wed, Dec 19, 2012 at 5:34 PM, Adam Phillips <asphilli@ucar.edu<mailto:asphilli@ucar.edu>> wrote:
Hi Waqar,
Grays range from dark ("gray25" for example) to light ("gray90" for example). See the named colors page here:
http://www.ncl.ucar.edu/Document/Graphics/named_colors.shtml

If you are using NCL version 6.1.0, you can ask for a named color and it will be automatically added to your colormap and is available for you. If you are using a previous NCL build, you will have to have defined a colorbar with the shade of gray you are calling for in it (see the gsdtol colormap for instance here: http://www.ncl.ucar.edu/Document/Graphics/ColorTables/gsdtol.shtml) or you can individually add the color to your colormap using NhlNewColor and specifying constant RGB values like .3,.3,.3 for gray30 for instance. (See: http://www.ncl.ucar.edu/Document/Graphics/ColorTables/gsdtol.shtml ).

With regards to the line label contour, I was going to point you to the Contour Labels example page (http://www.ncl.ucar.edu/Applications/ -> Contour Labels ) but there wasn't an example on how to do this. The resource you are after is cnLineLabelFontColor:
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLineLabelFontColor

Finally, with regards to the resources not working, setting res@mpGridAndLimbOn = False and res@gsnPolarLabelFontHeightF = 0.0 should work. I noticed that in my original reply I typed mpGridandLimbOn instead of mpGridAndLimbOn. Make sure the A in And is capitalized.

Setting gsnPolarLabelFontHeightF = 0.0 just worked for me in a recent script of mine. If that continues to not work please respond to ncl-talk with the version of NCL that you are using..
Good luck,
Adam

On 12/19/12 6:04 PM, Waqar Younas wrote:
Thank you for your kind response.
I used the gsn_contour_shade for "color" fill and used the opt@gsnShadeLow="black" and opt@gsnShadeHigh="grey". The picture is attached.
Now instead of black color i want to add dark grey and i do not know how to put the name. I also need names of colors which could be set for opt@gsnShadeLow and Shadehigh (either i use "color" or "pattern" fill).
In addition, i want to add contour values on the contour lines (in a white color so that they can be visible),

Two more things,
 res@mpGridandLimbOn = False and set res@gsnPolarLabelFontHeightF = 0 are not working. I am still getting the grid lines and longitude labels.
Thanks.

On Mon, Dec 17, 2012 at 5:05 PM, Adam Phillips <asphilli@ucar.edu<mailto:asphilli@ucar.edu>> wrote:
res@mpGridandLimbOn = False

--
Best Regards
Waqar Younas
PhD Candidate
Natural Resources and Environmental Studies (NRES)
University of Northern British Columbia (UNBC)
Canada
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
--
Best Regards
Waqar Younas
PhD Candidate
Natural Resources and Environmental Studies (NRES)
University of Northern British Columbia (UNBC)
Canada

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Dec 19 20:25:50 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST