[ncl-talk] Modifying size of plot and titles

Hyacinth Nnamchi hyacinth.1 at hotmail.com
Tue May 17 07:14:45 MDT 2022


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



  1.





________________________________
From: ncl-talk <ncl-talk-bounces at mailman.ucar.edu> on behalf of ncl-talk-request at mailman.ucar.edu <ncl-talk-request at mailman.ucar.edu>
Sent: 17 May 2022 1:36 PM
To: ncl-talk at mailman.ucar.edu <ncl-talk at mailman.ucar.edu>
Subject: ncl-talk Digest, Vol 222, Issue 10

Send ncl-talk mailing list submissions to
        ncl-talk at mailman.ucar.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://mailman.ucar.edu/mailman/listinfo/ncl-talk
or, via email, send a message with subject or body 'help' to
        ncl-talk-request at mailman.ucar.edu

You can reach the person managing the list at
        ncl-talk-owner at mailman.ucar.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ncl-talk digest..."


Today's Topics:

   1. Modifying size of plot and titles (Setareh Rahimi)


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

Message: 1
Date: Tue, 17 May 2022 17:06:33 +0430
From: Setareh Rahimi <setareh.rahimi at gmail.com>
To: ncl-talk at ucar.edu
Subject: [ncl-talk] Modifying size of plot and titles
Message-ID:
        <CAN+DFgx1E25rW8FKkWMQP4hE9Om5Ck1K3UsrdLMR=CoRcrDsGw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear all,
I have got an issue with the size of the plot, using the attached script
(attached). it is too small (attached). In addition, the titles for each
frame are too small, and I am also not happy with the type of label bars, I
want ticker and clear ones. Moreover, I should eliminate the color bar for
every single frame. How can I sort these issues out, please? I need to have
something like "climo_3_1_lg.png" (attached).
I appreciate any suggestions,
Best wishes,

--
S.Rahimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220517/31a2fc60/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: std-climo
Type: application/octet-stream
Size: 3864 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220517/31a2fc60/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 182788 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220517/31a2fc60/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: climo_3_1_lg.png
Type: image/png
Size: 624716 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220517/31a2fc60/attachment-0001.png>

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

Subject: Digest Footer

_______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk

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

End of ncl-talk Digest, Vol 222, Issue 10
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220517/c1797907/attachment.html>


More information about the ncl-talk mailing list