[ncl-talk] Unable to put labels on Xaxis and Y axis is elongated
Geeta Geeta
geetag54 at yahoo.com
Sun Apr 25 09:03:21 MDT 2021
Hi.
I am unable to put labels on the Xaxis inspite to specifying tm at XBValues and res at XBLabels. and the Ya xis is elongated
request someone to help me. I am attaching the figure so obtained.
Following are the res in the code.
res at tmXBMinorOn = False150 res at tmYLMinorOn = False
151 res at tmYLMode = "Explicit"
152 res at tmYLValues = Ht_of_layers
153 res at tmYLLabels = Ht_of_layers
154 ; defining X axis for all the plts together
155 Fix_NSCAN = 1036
156 Fix_NP = 173
157 xaxismin = Fix_NP+20
158 xaxismax = Fix_NP-20
159 xaxisinterval = 1
160 int_for_plot = 4
161
162 xaxis_fnl = ispan(xaxismin,xaxismax,xaxisinterval)
163 print(xaxis_fnl)
164 xaxis_for_plotting = ispan(xaxismin,xaxismax,int_for_plot)
165 printVarSummary(xaxis_for_plotting)
166 print(xaxis_for_plotting)
167
168 res at tmXBMode = "Explicit" ; will change from case to case
169 ; res at tmXBValues = xaxis_for_plotting
170 res at tmXBValues = (/longr(Fix_NSCAN,Fix_NP+20),longr(Fix_NSCAN,Fix_NP+16),longr(Fix_NSCAN,Fix_NP+12),longr(Fix_NSCAN,Fix_NP +08),longr(Fix_NSCAN,Fix_NP+04),longr(Fix_NSCAN,Fix_NP),longr(Fix_NSCAN,Fix_NP-04), longr(Fix_NSCAN,Fix_NP-08),longr(Fix_NSCAN,Fix_NP-12), longr(Fix_NSCAN,Fix_NP-16),longr(Fix_NSCAN,Fix_NP-20)/)
171 res at tmXBLabels = (/longr(Fix_NSCAN,Fix_NP+20),longr(Fix_NSCAN,Fix_NP+16),longr(Fix_NSCAN,Fix_NP+12),longr(Fix_NSCAN,Fix_NP +08),longr(Fix_NSCAN,Fix_NP+04),longr(Fix_NSCAN,Fix_NP),longr(Fix_NSCAN,Fix_NP-04), longr(Fix_NSCAN,Fix_NP-08),longr(Fix_NSCAN,Fix_NP-12), longr(Fix_NSCAN,Fix_NP-16),longr(Fix_NSCAN,Fix_NP-20)/)
172
173
174 print(res at tmXBLabels)
175 print(res at tmXBValues)
176 ; res at tmXBLabels = decimalPlaces(restmXBLabels,2,True)
177
Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210425/90f24a79/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2A12.20090521.65597.7.HDF.png
Type: image/png
Size: 45200 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210425/90f24a79/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21may2009.v1.ncl
Type: application/octet-stream
Size: 8374 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210425/90f24a79/attachment.obj>
More information about the ncl-talk
mailing list