Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Open

Cannot create datarray with ticks but no labels #7

kwgoodman opened this issue Jul 24, 2010 · 1 comment
Labels

Comments

@kwgoodman
Copy link
Contributor

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')),)    
@terhorst
Copy link
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants