[ncl-talk] Tickmarks on top x axis - ExplicitComputeMajorTickMarks Error
Adam Phillips
asphilli at ucar.edu
Mon Apr 23 15:12:02 MDT 2018
Hi Voula,
NCL (for some reason) has a hard limit to the number of tickmarks that can
be drawn on a plot. 616 is a very large number of tick mark labels. Even if
you could draw 616 tick mark labels you wouldn't likely be able to read
them as they would all be running into one another. Do you have to label
all 616? You can likely get around this issue by manually overlaying plots
(each with different ranges of tickmarks) onto one another, but that would
be very tedious.
To get NCL to draw the tickmarks you will have to reduce the number of them
below 256.
If you have any further questions please respond to the ncl-talk email list.
Adam
On Mon, Apr 23, 2018 at 10:46 AM, Paraskevi Vourlioti <
p.vourlioti at fz-juelich.de> wrote:
> dear NCL Users,
>
> I used gsn_csm_xy to plot an XY plot. On the X axis i have 616 values
> which i would like to correspond to some numbers on the top x axis. So,
> i used this :
>
> resXY at tmXTMode = "Explicit"
> resXY at tmXUseBottom = False
> resXY at tmXTLabelsOn = True
> resXY at tmXTOn = True
>
> resXY at tmXTValues=(/ chanels_by_num /)
>
> and the for the resXY at tmXTLabels i assigned them to 616 values that
> range from 16 to 8078.
>
> then i get this error :
>
> warning:ExplicitComputeMajorTickMarks: Maximum tickmarks (256) has been
> reached, tickmarks may appear in complete
>
> and my plot looks as all the labels are squeezed to the left on the top
> x axis.
>
> I attach my ncl code.
>
> Thank you very much, really need some help here
>
> Voula
>
>
>
> ------------------------------------------------------------
> ------------------------------------
> ------------------------------------------------------------
> ------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------
> ------------------------------------
> ------------------------------------------------------------
> ------------------------------------
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://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
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180423/1c907f25/attachment.html>
More information about the ncl-talk
mailing list