[ncl-talk] contour cnInfoLabelOn problem

Alex Schaefer aschae11 at uncc.edu
Sat Jul 2 09:27:45 MDT 2016


If you are meaning to turn off the labels that go with the contour lines then you probably want to set cnLineLabelsOn = False.   

-Alex

> On Jul 2, 2016, at 7:40 AM, Marston Johnston <shejo284 at gmail.com> wrote:
> 
> Hi,
> 
> I'm using gun_csm_contour on 3 plots in a (/1,3/) panel. I have set the resource as
> given below, but some labels are still showing up in the plot.
> 
> 
>     res               = True
>     res at gsnDraw       = False            ; don't draw
>     res at gsnFrame      = False            ; don't advance frame
>     res at cnFillOn      = True             ; turn on color
>     res at lbLabelBarOn  = False            ; turn off individual cb's
> 
>     res at cnFillPalette = "WhBlGrYeRe"
>     res at tmXMajorGrid                =  True     ;-- turn on x-grid
>     res at tmXMajorGridThicknessF      =  1.0      ;-- thinner the lines
>     res at tmXMajorGridLineDashPattern =  2        ;-- use dashed lines
>     res at tmYMajorGrid                =  True     ;-- turn on y-grid
>     res at tmYMajorGridThicknessF      =  1.0      ;-- thinner the lines
>     res at tmYMajorGridLineDashPattern =  2        ;-- use dashed lines
>     res at tmXTOn                      = False
>     res at tmYROn                      = False
> 
>     res at cnLevelSelectionMode =  "ManualLevels"
>     res at cnMinLevelValF       = 100
>     res at cnMaxLevelValF       = 2000
>     res at cnLevelSpacingF      = 100
>     res at cnInfoLabelOn          = False  ; turn off cn info label
>     res at cnLinesOn               = False  ; Turn off contour lines
> 
>     ; Ch 5 - 4
>     res at tiYAxisString = "Ch5 - Ch4 [K]"
>     res at tiXAxisString = "Ch5 [K]"
>     plots(0) = gsn_csm_contour(wks,hist5m4,res)  ; Create filled contours
> 
>     ; Ch 5 - 3
>     res at tiYAxisString = "Ch5 - Ch3 [K]"
>     res at tiXAxisString = "Ch5 [K]"
>     res at tmYLLabels    = ""
>     plots(1) = gsn_csm_contour(wks,hist5m3,res)  ; Create filled contours
> 
>     ; Ch 4 - 3
>     res at tiYAxisString = "Ch4 - Ch3 [K]"
>     res at tiXAxisString = "Ch4 [K]"
>     plots(2) = gsn_csm_contour(wks,hist4m3,res)  ; Create filled contours
> 
>     resP                    = True              ; modify the panel plot
>     resP at gsnFrame           = False             ; don't advance panel plot
>     resP at gsnPanelLabelBar   = True              ; add common colorbar
>     resP at gsnMaximize        = True                ; maximize plots
>     resP at gsnPanelBottom     = 0.05
>     gsn_panel(wks,plots,(/1,3/),resP)            ; now draw as one plot
> 
> any ideas as to why this is happening even after I have set the resource below to false? 
> 
> res at cnInfoLabelOn          = False  ; turn off cn info label
> res at cnLinesOn               = False  ; Turn off contour lines
> 
> 
> Appreciate your help,
> /M
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Marston S. Johnston, PhD
> Department of Earth Sciences
> University of Gothenburg, Sweden
> Email: marston.johnston at gu.se 
> Phone: +46-31-7864901 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Only the fruitful thing is true!
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160702/cf1628ab/attachment.html 


More information about the ncl-talk mailing list