[ncl-talk] removing plot borders

Karin Meier-Fleischer meier-fleischer at dkrz.de
Wed Jul 20 03:54:06 MDT 2016


Mollweide Projection do not have latitude/longitude tick marks and I was 
faced with a similar problem not so long ago. ;-)

Bye,
Karin

Am 20.07.16 um 11:14 schrieb Marston Johnston:
> Hi Karin,
>
> Thanks for helping me solve this problem. I'm curious, when I looked 
> up this pmTickMarkDisplayMode, it gave no indication about a box 
> around the plot. How did you figure this one out? I'm trying to better 
> understand NCL.
>
> /M
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Marston S. Johnston, PhD
> Department of Earth Sciences
> University of Gothenburg, Sweden
> Email: marston.johnston at gu.se <mailto:marston.johnston at gu.se>
> Phone: +46-31-7864901
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Only the fruitful thing is true!
>
> On Wed, Jul 20, 2016 at 11:00 AM, Karin Meier-Fleischer 
> <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> wrote:
>
>     Hi Marston,
>
>     you have to comment or delete the line 26 with the
>     res at pmTickMarkDisplayMode resource attribute, too.
>
>     Bye,
>     Karin
>
>     Am 20.07.16 um 09:55 schrieb Marston Johnston:
>>     Hi Karin,
>>
>>     Thanks for the tip but I'm afraid it didn't work :-(
>>     Here's link to the figure. I'm trying to remove the outer
>>     rectangular border, if that is at all possible.
>>
>>     https://www.dropbox.com/s/s28l6zrauo6ti2v/clr_all_comp_seasons.pdf?dl=0
>>
>>     Appreciate your help with this :-)
>>     /M
>>
>>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>     Marston S. Johnston, PhD
>>     Department of Earth Sciences
>>     University of Gothenburg, Sweden
>>     Email: marston.johnston at gu.se <mailto:marston.johnston at gu.se>
>>     Phone: +46-31-7864901 <tel:%2B46-31-7864901>
>>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>     Only the fruitful thing is true!
>>
>>     On Tue, Jul 19, 2016 at 5:47 PM, Karin Meier-Fleischer
>>     <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> wrote:
>>
>>         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
>>         <http://clr-sky_seasavg2005_2006.nc>"
>>         >    clrsky = GetSeason(ifile,season)
>>         >    ifile := "run/allsky/all-sky_seasavg2005_2006.nc
>>         <http://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 <mailto:ncl-talk at ucar.edu>
>>         > List instructions, subscriber options, unsubscribe:
>>         > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>         _______________________________________________
>>         ncl-talk mailing list
>>         ncl-talk at ucar.edu <mailto: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/20160720/f76c1c8f/attachment.html 


More information about the ncl-talk mailing list