Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cannot create datarray with ticks but no labels #7

kwgoodman opened this Issue Jul 24, 2010 · 1 comment


None yet
2 participants

kwgoodman commented Jul 24, 2010

I'd like to use ticks without labels. At the moment that is not possible:

>>> DataArray([1, 2], [(None, ('a', 'b'))])
ValueError: ticks only supported when Axis has a label

Well, it is possible:

>>> dar = DataArray([1, 2], [('tmp', ('a', 'b'))])
>>> dar.set_label(0, None)
>>> dar.axes
(Axis(label=None, index=0, ticks=('a', 'b')),)    

terhorst commented Jun 1, 2011

I am not sure why this throws an exception, does anyone? The tests all pass if we remove this restriction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment