Skip to content

Commit a1af12c

Browse files
rwpenneygreglucas
andauthored
Apply suggestions from code review
Co-authored-by: Greg Lucas <[email protected]>
1 parent 97693e8 commit a1af12c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

examples/images_contours_and_fields/colormap_normalizations_symlognorm.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ def rbf(x, y):
5353

5454

5555
########################################
56-
# Clearly, tt may be necessary to experiment with multiple different
57-
# colorscales in order to find the best visualization for
58-
# any particular dataset.
56+
# In order to find the best visualization for any particular dataset,
57+
# it may be necessary to experiment with multiple different color scales.
5958
# As well as the `~.colors.SymLogNorm` scaling, there is also
6059
# the option of using the `~.colors.AsinhNorm`, which has a smoother
6160
# transition between the linear and logarithmic regions of the transformation
62-
# applied to the "z" axis.
61+
# applied to the data values, "Z".
6362
# In the plots below, it may be possible to see contour-like artifacts
6463
# around each hump despite there being no sharp features
6564
# in the dataset itself. The ``asinh`` scaling shows a smoother shading

lib/matplotlib/scale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def inverted(self):
477477

478478

479479
class InvertedAsinhTransform(Transform):
480-
"""Hyperbolic-sine transformation used by `.AsinhScale`"""
480+
"""Hyperbolic sine transformation used by `.AsinhScale`"""
481481
input_dims = output_dims = 1
482482

483483
def __init__(self, linear_width):
@@ -496,7 +496,7 @@ class AsinhScale(ScaleBase):
496496
A quasi-logarithmic scale based on the inverse hyperbolic sine (asinh)
497497
498498
For values close to zero, this is essentially a linear scale,
499-
but for larger values (either positive or negative) it is asymptotically
499+
but for large magnitude values (either positive or negative) it is asymptotically
500500
logarithmic. The transition between these linear and logarithmic regimes
501501
is smooth, and has no discontinuities in the function gradient
502502
in contrast to the `.SymmetricalLogScale` ("symlog") scale.

0 commit comments

Comments
 (0)