We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29cdd6b commit 75ee6e1Copy full SHA for 75ee6e1
packages/python/plotly/_plotly_utils/colors/__init__.py
@@ -797,3 +797,12 @@ def convert_colorscale_to_rgb(colorscale):
797
for color in colorscale:
798
color[1] = label_rgb(color[1])
799
return colorscale
800
+
801
802
+def named_colorscales():
803
+ """
804
+ Returns lowercased names of built-in continuous colorscales.
805
806
+ from _plotly_utils.basevalidators import ColorscaleValidator
807
808
+ return [c for c in ColorscaleValidator("", "").named_colorscales]
0 commit comments