Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 05c622b

Browse filesBrowse files
authored
style: update multicolored_line.py
1 parent 10d30a7 commit 05c622b
Copy full SHA for 05c622b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎galleries/examples/lines_bars_and_markers/multicolored_line.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/multicolored_line.py
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.