[ncl-talk] Lat/lon tickmark and labels on panel plots
Sam Hardy
S.Hardy1 at leeds.ac.uk
Fri Apr 13 11:02:52 MDT 2018
Hi ncl-talk,
I'm trying to produce panel plots of basic variables, e.g. vertical velocity, for multiple ensemble members (see attached plot). I'm running NCL 6.4.0 (see attached script) on x86_64 GNU/linux.
In each of the panels, the plot is centred on the location of the storm, so the lat/lon positions of each panel are slightly different. When the lat/lon tickmark labels are close to the edge of the domain (e.g. (d) in attached plot), the size of the panel is reduced relative to the other panels, producing uneven images.
This issue isn't really noticeable until I increase the label font size to something readable using the 'tmXBLabelFontHeightF'/'tmXLLabelFontHeightF' resources, but obviously I'd like to be able to read the labels in the first place!
In simple terms, I want to stop NCL from drawing a tickmark and associated label when they're positioned less than a threshold distance away from the relevant edge of the box, but can't seem to find a way of doing this. Can anybody shed any light on the issue? It seems like this task should be relatively easy to fix, but it's been bugging me for a while.
I'm using 'gsn_panel' to produce the plots, but have also tried explicitly setting the panel positions and sizes using 'vpXF', 'vpYF', etc, without success. I've also tried setting 'tmXBMode = "Manual"' and using 'tmXBTickStartF', 'tmXBTickEndF', etc to force NCL to only put tick marks in specified locations, but haven't managed to fix the issue.
The script I've attached plots a different variable (potential vorticity) and produces only 2 rather than 12 panels (to save time), but the issue is the same. I'll wait before ftp'ing the input files (> 4 GB each) because this isn't about finding a bug in the script, but more about guidance on which function to use.
Thanks in advance for any help,
Sam
Sam Hardy
Postdoctoral Researcher - Tropical Cyclone Intensification
Institute for Climate and Atmospheric Science
School of Earth and Environment
University of Leeds
Leeds
LS2 9JT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180413/3d1aed49/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vvel_panel.pdf
Type: application/pdf
Size: 216101 bytes
Desc: vvel_panel.pdf
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180413/3d1aed49/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc_ens_pv_panel2.ncl
Type: application/octet-stream
Size: 17111 bytes
Desc: tc_ens_pv_panel2.ncl
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180413/3d1aed49/attachment.obj>
More information about the ncl-talk
mailing list