[ncl-talk] Modifying size of plot and titles

Hyacinth Nnamchi hyacinth.1 at hotmail.com
Sat May 28 03:03:30 MDT 2022


Hi Setareh,

You can check the attached script and work from there, the resulting plot is also attached. It is based on data from here: https://psl.noaa.gov/thredds/dodsC/Datasets/ncep.reanalysis.derived/surface/air.mon.mean.nc. Note that the script plots January to December of the first year.

Best,

Hyacinth







----------------------------------------------------------------------

Message: 1
Date: Thu, 19 May 2022 16:41:15 +0430
From: Setareh Rahimi <setareh.rahimi at gmail.com>
To: Hyacinth Nnamchi <hyacinth.1 at hotmail.com>
Cc: "ncl-talk at mailman.ucar.edu" <ncl-talk at mailman.ucar.edu>
Subject: Re: [ncl-talk] Modifying size of plot and titles
Message-ID:
        <CAN+DFgyxxNf2e5YYE0NEdTV1ffby1iuotXqPturgYwzO-nbhmw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear Hyacinth,
Thank you for your help,but it did not work.
Best wishes,

On Tue, May 17, 2022 at 17:44 Hyacinth Nnamchi via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hi,
>
> To increase the size of the plots, you can try these:
>
>
>    1. Increase the panels columns and reduce the rows. You can do:
>    2.
>
>    gsn_panel(wks,plot,(/3,2/),resP)
>
>
>
>
>    1. In addition, you can reduce the white space to the left of each
>    panel, so that your map starts from the west coast of Africa.
>    2.
>
>    res at mpMinLonF            = -20
>
>
>    3. Then to increase the font for months "January", "Februay", etc, you
>    need to introduce this resource:
>
>            res at gsnLeftString = 0.025      ;you can increase/reduce this
> value to get the right size
>
>   Then to increase the font for months "mm", you need to introduce this:
>
>            res at gsnRightString = 0.025      ;you can increase/reduce this
> value
>
>
> To have only one labelbar you need to plot before panelling, this should
> also increase the size of the individual plots:
>
>     do nmo=0,11                                  ; loop over the months
>         res at gsnLeftString     = months(nmo)
>         plot(nmo) = gsn_csm_contour_map(wks,anom(nmo,:,:), res)  ; create plot
>      end do
>
>    resP                     = True               ; panel options
>    resP at gsnPanelMainString  = " Monthly anomaly temperature : "+(ymStrt/100)+"-"+(ymLast/100)
>    resP at gsnMaximize         = True               ; maximize image
>    resP at gsnPanelLabelBar    = True               ; Add a common labelbar
>
> gsn_panel(wks,plot,(/4,3/),resP)
>
>
>
> Best,
>
> Hyacinth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220528/8c3a1c04/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: climo_ghcn.png
Type: image/png
Size: 261499 bytes
Desc: climo_ghcn.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220528/8c3a1c04/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: climo_ghcn.ncl
Type: application/octet-stream
Size: 4412 bytes
Desc: climo_ghcn.ncl
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220528/8c3a1c04/attachment-0001.obj>


More information about the ncl-talk mailing list