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

Open
kwgoodman opened this Issue Jul 24, 2010 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

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'))])
<snip>
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')),)    
Contributor

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