Skip to content

Commit ba8ec10

Browse files
bmaranvillegvwilson
authored andcommitted
use heatmap colorscale validator
1 parent 0e913eb commit ba8ec10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/figure_factory/_annotated_heatmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from plotly.figure_factory import utils
44
from plotly.graph_objs import graph_objs
55
from plotly.validator_cache import ValidatorCache
6-
# from _plotly_utils.basevalidators import ColorscaleValidator
6+
# from plotly.validators.heatmap import ColorscaleValidator
77

88
# Optional imports, may be None for users that only use our core functionality.
99
np = optional_imports.get_module("numpy")
@@ -103,7 +103,7 @@ def create_annotated_heatmap(
103103
validate_annotated_heatmap(z, x, y, annotation_text)
104104

105105
# validate colorscale
106-
colorscale_validator = ValidatorCache.get_validator("layout", "colorscale")
106+
colorscale_validator = ValidatorCache.get_validator("heatmap", "colorscale")
107107
colorscale = colorscale_validator.validate_coerce(colorscale)
108108

109109
annotations = _AnnotatedHeatmap(

0 commit comments

Comments
 (0)