Apply suggestions from tacaswell · matplotlib/matplotlib@63e789a · GitHub
Skip to content

Commit 63e789a

Browse files
trygvradtacaswell
andauthored
Apply suggestions from tacaswell
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
1 parent 5fe91bb commit 63e789a

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions

lib/matplotlib/colorizer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,7 @@ def _format_cursor_data_override(self, data):
505505

506506
# scalar data
507507
n = self.cmap.N
508-
g_sig_digits = self._sig_digits_from_norm(self.norm,
509-
data,
510-
n)
508+
g_sig_digits = self._sig_digits_from_norm(self.norm, data, n)
511509
return f"[{data:-#.{g_sig_digits}g}]"
512510

513511

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,7 +3266,7 @@ def __init__(self, norms, vmin=None, vmax=None, clip=False):
32663266
# Convert the list of norms to a tuple to make it immutable.
32673267
# If there is a use case for swapping a single norm, we can add support for
32683268
# that later
3269-
self._norms = tuple(n for n in norms)
3269+
self._norms = tuple(norms)
32703270

32713271
self.callbacks = cbook.CallbackRegistry(signals=["changed"])
32723272

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)