Skip to content

Commit 456adc8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5776567 commit 456adc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scanpy/plotting/_dotplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def __init__( # noqa: PLR0913
244244

245245
def _prepare_dot_data(self, dot_color_df, dot_size_df):
246246
"""Calculate the dataframes for dot size and color.
247-
247+
248248
Refactored to helper to satisfy complexity checks.
249249
"""
250250
# for if category defined by groupby (if any) compute for each var_name
@@ -657,12 +657,12 @@ def _plot_stacked_colorbars(self, fig, colorbar_area_spec, normalize):
657657
ax = fig.add_subplot(
658658
colorbar_gs[i, 0]
659659
) # Place the colorbar Axes in the first, wider column
660-
660+
661661
# self.group_cmaps[group_name] is already a Colormap object (or string from fallback)
662662
cmap = self.group_cmaps[group_name]
663663
if isinstance(cmap, str):
664664
cmap = colormaps.get_cmap(cmap)
665-
665+
666666
mappable = ScalarMappable(norm=legend_norm, cmap=cmap)
667667

668668
cb = matplotlib.colorbar.Colorbar(
@@ -1216,4 +1216,4 @@ def dotplot( # noqa: PLR0913
12161216
savefig_or_show(DotPlot.DEFAULT_SAVE_PREFIX, show=show, save=save)
12171217
show = settings.autoshow if show is None else show
12181218
if not show:
1219-
return dp.get_axes()
1219+
return dp.get_axes()

0 commit comments

Comments
 (0)