Skip to content

Commit 503e962

Browse files
committed
blacken
1 parent ae984b0 commit 503e962

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/python/plotly/plotly/express/_imshow.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def imshow(
169169
args = locals()
170170
apply_default_cascade(args)
171171
img_is_xarray = False
172-
colorbar_title = ''
172+
colorbar_title = ""
173173
if xarray_imported:
174174
if isinstance(img, xarray.DataArray):
175175
y_label, x_label = img.dims[0], img.dims[1]
@@ -186,14 +186,14 @@ def imshow(
186186
colorbar_title = z_name
187187

188188
if labels is not None:
189-
if 'x' in labels:
190-
y_label = labels['x']
191-
if 'y' in labels:
192-
y_label = labels['y']
193-
if 'color' in labels:
194-
z_name = labels['color']
195-
if 'colorbar' in labels:
196-
colorbar_title = labels['colorbar']
189+
if "x" in labels:
190+
y_label = labels["x"]
191+
if "y" in labels:
192+
y_label = labels["y"]
193+
if "color" in labels:
194+
z_name = labels["color"]
195+
if "colorbar" in labels:
196+
colorbar_title = labels["colorbar"]
197197

198198
if not img_is_xarray:
199199
if aspect is None:
@@ -226,7 +226,7 @@ def imshow(
226226
cmid=color_continuous_midpoint,
227227
cmin=range_color[0],
228228
cmax=range_color[1],
229-
colorbar=dict(title=colorbar_title)
229+
colorbar=dict(title=colorbar_title),
230230
)
231231

232232
# For 2D+RGB data, use Image trace

0 commit comments

Comments
 (0)