-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add support for the _r convention to reverse colorscales #1681
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
Comments
yeah, this would be great. This would be handled in the plotly.py/packages/python/plotly/_plotly_utils/basevalidators.py Lines 1568 to 1583 in 168398e
with something like elif v_lower.endswith('_r') and v_lower[:-2] in self.named_colorscales:
v = list(reversed(self.named_colorscales[v_lower[:-2]]))
... And we would need to update the description (which is used for docstring and validation error messages) at plotly.py/packages/python/plotly/_plotly_utils/basevalidators.py Lines 1539 to 1564 in 168398e
|
...the way Matplotlib does it.
The text was updated successfully, but these errors were encountered: