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

QuadMesh fails to set colorbar scale in python 3 #942

Closed
piskunow opened this issue Oct 20, 2016 · 3 comments
Closed

QuadMesh fails to set colorbar scale in python 3 #942

piskunow opened this issue Oct 20, 2016 · 3 comments
Labels
tag: backend: mpl type: bug Something isn't correct or isn't working
Milestone

Comments

@piskunow
Copy link

When updating a code from python 2 to python 3, QuadMesh stops recognizing the colorbar limits 'clim'.
The code below produces different results in python 2 than python 3.

import numpy as np
import holoviews as hv
hv.notebook_extension()
%%opts QuadMesh [aspect='square', colorbar=True](cmap='hot', clims=(0,0.5))
x_array = np.linspace(0,1,50)
y_array = np.linspace(0,1,50)
z_mesh = np.outer(x_array,y_array)

hv.QuadMesh((x_array,y_array,z_mesh))

python 2 output:
python2

python 3 output:
python3

@philippjfr
Copy link
Member

Thanks for reporting this, very odd indeed. Will have to investigate. I know matplotlib sometimes has issues with dictionary ordering, so let's hope it's not that.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working tag: backend: mpl labels Oct 21, 2016
@philippjfr philippjfr added this to the v1.7.0 milestone Oct 21, 2016
@philippjfr
Copy link
Member

The clims style option was incorrectly defined as clim which caused these issues. This has now been fixed in the PR referenced above. If you're still encountering problems please reraise the issue.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tag: backend: mpl type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

2 participants