[ncl-talk] Issue regarding how to plot desirable variable only for a few months

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Sat May 14 08:58:53 MDT 2022


Hi,I think you should turn off the individual label bars lbLabelBarOn = False

| 
| 
|  | 
LabelBar resources

NCL LabelBar Resources
 |

 |

 |


As mentioned in panel_3.ncl example.


-----------------------------------------------------------------------------Ehsan Taghizadeh


 

    On Saturday, May 14, 2022, 03:19:38 AM GMT+4:30, Setareh Rahimi via ncl-talk <ncl-talk at mailman.ucar.edu> wrote:  
 
 I have further questions. The plot I got 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,

On Fri, May 13, 2022 at 11:06 PM Adam Phillips <asphilli at ucar.edu> wrote:

Hi Setareh,Ah, I misread your email. Right now your code shows this for creating the individual plots:  do nmo=0,2                                  ; loop over the months
     res at gsnLeftString     = months(nmo)
     plot(nmo) = gsn_csm_contour_map(wks,anom(nmo,:,:), res)  ; create plot
  end do
    do nmo=9,11                                  ; loop over the months
     res at gsnLeftString     = months(nmo)
     plott(nmo) = gsn_csm_contour_map(wks,anom(nmo,:,:), res)  ; create plot
   end do

If you didn't want to change the above coding, you could call gsn_panel like this:gsn_panel(wks,(/plot(0),plot(1),plot(2),plott(9),plott(10),plott(11)/),(/2,3/),resP)

Adam

On Fri, May 13, 2022 at 12:29 PM Setareh Rahimi <setareh.rahimi at gmail.com> wrote:

Dear Adam,Thanks for your attention. But as  I mentioned, I need to plot only for 6 months, hence:  ["January", "February", "March"  "October", "November", "December"]Best wishes,

On Fri, May 13, 2022 at 10:54 PM Adam Phillips <asphilli at ucar.edu> wrote:

Hi Satareh,If you want to simply plot the anomalies from the first 12 months of your anom array, change this:  do nmo=0,2                                  ; loop over the months
     res at gsnLeftString     = months(nmo)
     plot(nmo) = gsn_csm_contour_map(wks,anom(nmo,:,:), res)  ; create plot
  end do

to this:  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

and change this:gsn_panel(wks,plot,(/2,3/),resP)   ;=plot 2 rows by 3 columns
to this:gsn_panel(wks,plot,(/4,3/),resP)   ;=plot 4 rows by 3 columns, = 12 plots if all entries of plot are valid

Hope that helps. If you have further questions please respond to ncl-talk.Adam
On Fri, May 13, 2022 at 9:49 AM Setareh Rahimi via ncl-talk <ncl-talk at mailman.ucar.edu> wrote:

Dear all,I am trying to plot the monthly anomalies of temperature for my study area, for the following month: ["January", "February", "March"  "October", "November", "December"]. But my problem is that the script that I am running only plots for 3 months. Please advise me on how to fix this issue (script attached).Thanks in advance,Best wishes,
--   
S.Rahimi

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


-- 
Adam Phillips 
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726 



-- 
S.Rahimi




-- 
Adam Phillips 
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726 



-- 
S.Rahimi

_______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220514/719713d3/attachment-0001.html>
-------------- 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/20220514/719713d3/attachment-0002.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/20220514/719713d3/attachment-0003.png>


More information about the ncl-talk mailing list