We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This currently works with a list:
import numpy as np x = np.arange(0, 3) y = np.arange(5, 8) a = np.array([[np.nan, np.nan, 1], [np.nan] * 3, [np.nan] * 3]) b = np.array([[np.nan] * 3, [1, 1, np.nan], [np.nan] * 3]) c = np.array([[np.nan] * 3, [np.nan] * 3, [1, 1, 1]]) img_stack = hv.ImageStack((x, y, a, b, c), kdims=["x", "y"], vdims=["a", "b", "c"]) img_stack.opts(cmap=["red", "green", "blue"])
But using a dictionary (which is often more convenient when you don't know the layer order, or need to map a category to a colour) does not work:
import numpy as np x = np.arange(0, 3) y = np.arange(5, 8) a = np.array([[np.nan, np.nan, 1], [np.nan] * 3, [np.nan] * 3]) b = np.array([[np.nan] * 3, [1, 1, np.nan], [np.nan] * 3]) c = np.array([[np.nan] * 3, [np.nan] * 3, [1, 1, 1]]) img_stack = hv.ImageStack((x, y, a, b, c), kdims=["x", "y"], vdims=["a", "b", "c"]) img_stack.opts(cmap={'a':"red", 'b':"green", 'c':"blue"})
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
ahuang11
Successfully merging a pull request may close this issue.
This currently works with a list:
But using a dictionary (which is often more convenient when you don't know the layer order, or need to map a category to a colour) does not work:
The text was updated successfully, but these errors were encountered: