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

Fixed bugs in mpl colorbar arrows and Image.range #1211

Merged
merged 3 commits into from
Mar 16, 2017

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Mar 16, 2017

In fixing a bug in the colorbars (#1109) I found a bug in handling partially bounded Dimension.range settings, e.g.:

hv.Image(np.array([[0, 1], [2, 3]]).redim(z=dict(range=(None, 2))).range('z')

Would report (0, 3) when all our other Elements respect explicitly set ranges. I'll probably open another PR to add an argument to the range method to ignore the soft_range and range on the Dimension. Knowing the actual data range is perhaps more useful and we should consider returning that by default and only returning Dimension.range when requested, which all the plotting code could do.

@jlstevens
Copy link
Contributor

Tests have passed. Ready to merge?

@philippjfr
Copy link
Member Author

Yes, ready to merge, I'll open the related issue now.

@jlstevens jlstevens merged commit 3658cbd into master Mar 16, 2017
@philippjfr philippjfr deleted the mpl_colorbar_extend branch April 19, 2017 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants