[ncl-talk] removing plot borders

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue Jul 19 09:47:04 MDT 2016


Hi Marston,

to disable the perimeter box around the Mollweide plot use

   res at mpPerimOn   =  False

Bye,
Karin

Am 19.07.16 um 15:38 schrieb Marston Johnston:
> Hi,
>
> I have a 3 plot panel plot that keeps putting a border around each individual plot.
> Does any one know how to remove the border?
>
> /M
>
> My code:
>
> begin
>    season = 7 ; JJA 2006
>    ifile = "/run/clr/clr-sky_seasavg2005_2006.nc"
>    clrsky = GetSeason(ifile,season)
>    ifile := "run/allsky/all-sky_seasavg2005_2006.nc"
>    allsky = GetSeason(ifile,season)
>    printVarSummary(clrsky)
>    printVarSummary(allsky)
>
>    wks = gsn_open_wks("x11","clr_all_comp")
>
>    plot = new(3,graphic)
>
>    res                       = True
>    res at gsnDraw               = False           ; don't draw
>    res at gsnFrame              = False           ; don't advance frame
>    res at cnInfoLabelOn         = False           ; turn off cn info label
>    res at cnLinesOn             = False
>    res at cnLineLabelsOn        = False           ; Turn off line labels
>    res at cnFillOn              = True            ; turn on color
>    res at cnFillPalette   = "gui_default"
>
>    res at mpCenterLonF          = 180
>    res at mpProjection          = "Mollweide"
>    res at mpGridAndLimbOn       = True
>    res at pmTickMarkDisplayMode = "Always"
>    res at mpGridLatSpacingF     = 30
>    res at mpGridLonSpacingF     = 60
>    res at mpFillOn              = False
>    res at lbLabelBarOn          = True
>    res at lbLabelFontHeightF    = .018
>
>    res at cnLevelSelectionMode  = "ManualLevels"
>    res at cnMinLevelValF        = 250.
>    res at cnMaxLevelValF        = 290.
>    res at cnLevelSpacingF       = 5.
>
>    plot(0) = gsn_csm_contour_map(wks,clrsky(4,:,:),res)
>    plot(1) = gsn_csm_contour_map(wks,allsky(4,:,:),res)
>
>    res at cnLevelSelectionMode  = "ManualLevels"
>    res at cnMinLevelValF        = -10.
>    res at cnMaxLevelValF        = 10.
>    res at cnLevelSpacingF       = 1.
>
>    diff = Darr(clrsky(4,:,:),allsky(4,:,:))
>    printVarInfo(diff,"diff")
>
>    res at cnFillPalette   = "BlAqGrWh2YeOrReVi22"
>    res at lbLabelBarOn    = True
>    plot(2) = gsn_csm_contour_map(wks,diff,res)
>
>    resP                       = True                   ; modify the panel plot
>    resP at gsnPanelFigureStrings = (/"a)","b)","c)"/) ; add strings to panel
>    resP at gsnPanelFigureStringsFontHeightF = 0.015
>    resP at amJust                = "TopLeft"
>    gsn_panel(wks,plot,(/3,1/),resP)               ; now draw as one plot
> end
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


More information about the ncl-talk mailing list