Skip to content

Commit c64d0c4

Browse files
committed
Tweaked indendation etc. following review by @QuLogic
1 parent 3e487a6 commit c64d0c4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/users/next_whats_new/asinh_scale.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ of magnitude.
1010
.. plot::
1111

1212
import matplotlib.pyplot as plt
13-
import numpy
13+
import numpy as np
1414

1515
fig, (ax0, ax1) = plt.subplots(1, 2, sharex=True)
16-
x = numpy.linspace(-3, 6, 100)
16+
x = np.linspace(-3, 6, 100)
1717

1818
ax0.plot(x, x)
1919
ax0.set_yscale('symlog')
@@ -26,7 +26,7 @@ of magnitude.
2626
ax1.set_title(r'$sinh^{-1}$')
2727

2828
for p in (-2, 2):
29-
for ax in (ax0, ax1):
30-
c = plt.Circle((p, p), radius=0.5, fill=False,
31-
color='red', alpha=0.8, lw=3)
32-
ax.add_patch(c)
29+
for ax in (ax0, ax1):
30+
c = plt.Circle((p, p), radius=0.5, fill=False,
31+
color='red', alpha=0.8, lw=3)
32+
ax.add_patch(c)

examples/images_contours_and_fields/colormap_normalizations_symlognorm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.. redirect-from:: /gallery/userdemo/colormap_normalization_symlognorm
99
"""
1010

11-
########################################
11+
###############################################################################
1212
# Synthetic dataset consisting of two humps, one negative and one positive,
1313
# the positive with 8-times the amplitude.
1414
# Linearly, the negative hump is almost invisible,
@@ -52,7 +52,7 @@ def rbf(x, y):
5252
ax[1].text(-2.5, 1.5, 'linear')
5353

5454

55-
########################################
55+
###############################################################################
5656
# In order to find the best visualization for any particular dataset,
5757
# it may be necessary to experiment with multiple different color scales.
5858
# As well as the `~.colors.SymLogNorm` scaling, there is also

0 commit comments

Comments
 (0)