Skip to content

Commit f7f7034

Browse files
committed
Fix for axis length
1 parent 8f532fc commit f7f7034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dr2xml/grids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def create_axis_from_dim(dim, labels, axis_ref):
329329
if dim.type not in ["character", ]:
330330
if dim.requested not in ['', 'undef']:
331331
nb = len(dim.requested.split())
332-
value = "(0,{})[ {} ]".format(nb, dim.requested.strip())
332+
value = "(0,{})[ {} ]".format(nb -1, dim.requested.strip())
333333
if isinstance(dim.boundsRequested, list):
334334
vals = " ".join([str(v) for v in dim.boundsRequested])
335335
valsr = reduce(lambda x, y: x + y, vals)

0 commit comments

Comments
 (0)