Skip to content

Commit a30fa38

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/spatialdata_plot/pl/render.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def _render_images(
963963
cb.formatter.set_useOffset(False) # Disable offset
964964
cb.formatter.set_scientific(False) # Disable scientific notation
965965
# Set a custom formatter that always shows decimal places
966-
cb.formatter = matplotlib.ticker.FuncFormatter(lambda x, p: f'{x:.1f}')
966+
cb.formatter = matplotlib.ticker.FuncFormatter(lambda x, p: f"{x:.1f}")
967967

968968
# 2) Image has any number of channels but 1
969969
else:

‎src/spatialdata_plot/pl/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ def _decorate_axs(
11491149
cb.formatter.set_useOffset(False) # Disable offset
11501150
cb.formatter.set_scientific(False) # Disable scientific notation
11511151
# Set a custom formatter that always shows decimal places
1152-
cb.formatter = matplotlib.ticker.FuncFormatter(lambda x, p: f'{x:.1f}')
1152+
cb.formatter = matplotlib.ticker.FuncFormatter(lambda x, p: f"{x:.1f}")
11531153

11541154
if isinstance(scalebar_dx, list) and isinstance(scalebar_units, list):
11551155
scalebar = ScaleBar(scalebar_dx, units=scalebar_units, **scalebar_kwargs)

0 commit comments

Comments
 (0)