Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b3905 commit cf99af9Copy full SHA for cf99af9
packages/python/plotly/plotly/figure_factory/_annotated_heatmap.py
@@ -196,14 +196,14 @@ def __init__(
196
self.zmin = min([v for row in self.z for v in row])
197
self.zmax = max([v for row in self.z for v in row])
198
199
- if "zmin" in kwargs:
+ if kwargs.get("zmin", None) is not None:
200
self.zmin = kwargs["zmin"]
201
- if "zmax" in kwargs:
+ if kwargs.get("zmax", None) is not None:
202
self.zmax = kwargs["zmax"]
203
204
self.zmid = (self.zmax + self.zmin) / 2
205
206
- if "zmid" in kwargs:
+ if kwargs.get("zmid", None) is not None:
207
self.zmin = kwargs["zmid"]
208
209
def get_text_color(self):
0 commit comments