8000 style: update multicolored_line.py · matplotlib/matplotlib@05c622b · GitHub
[go: up one dir, main page]

Skip to content

Commit 05c622b

Browse files
authored
style: update multicolored_line.py
1 parent 10d30a7 commit 05c622b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

galleries/examples/lines_bars_and_markers/multicolored_line.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def colored_line(x, y, c, ax=None, **lc_kwargs):
6060
(xy[0, :][None, :], (xy[:-1, :] + xy[1:, :]) / 2, xy[-1, :][None, :]), axis=0
6161
)
6262
segments = np.stack((xy_mid[:-1, :], xy, xy_mid[1:, :]), axis=-2)
63-
# Note that
63+
# Note that
6464
# segments[0, :, :] is [xy[0, :], xy[0, :], (xy[0, :] + xy[1, :]) / 2]
65-
# segments[i, :, :] is [(xy[i - 1, :] + xy[i, :]) / 2, xy[i, :],
65+
# segments[i, :, :] is [(xy[i - 1, :] + xy[i, :]) / 2, xy[i, :],
6666
# (xy[i, :] + xy[i + 1, :]) / 2] if i not in {0, len(x) - 1}
6767
# segments[-1, :, :] is [(xy[-2, :] + xy[-1, :]) / 2, xy[-1, :], xy[-1, :]]
6868

@@ -72,7 +72,7 @@ def colored_line(x, y, c, ax=None, **lc_kwargs):
7272
# Plot the line collection to the axes
7373
ax = ax or plt.gca()
7474
ax.add_collection(lc)
75-
ax.autoscale_view(scalex=scalex, scaley=scaley)
75+
ax.autoscale_view()
7676

7777
return lc
7878

0 commit comments

Comments
 (0)
0