8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d30a7 commit 05c622bCopy full SHA for 05c622b
galleries/examples/lines_bars_and_markers/multicolored_line.py
@@ -60,9 +60,9 @@ def colored_line(x, y, c, ax=None, **lc_kwargs):
60
(xy[0, :][None, :], (xy[:-1, :] + xy[1:, :]) / 2, xy[-1, :][None, :]), axis=0
61
)
62
segments = np.stack((xy_mid[:-1, :], xy, xy_mid[1:, :]), axis=-2)
63
- # Note that
+ # Note that
64
# segments[0, :, :] is [xy[0, :], xy[0, :], (xy[0, :] + xy[1, :]) / 2]
65
- # segments[i, :, :] is [(xy[i - 1, :] + xy[i, :]) / 2, xy[i, :],
+ # segments[i, :, :] is [(xy[i - 1, :] + xy[i, :]) / 2, xy[i, :],
66
# (xy[i, :] + xy[i + 1, :]) / 2] if i not in {0, len(x) - 1}
67
# segments[-1, :, :] is [(xy[-2, :] + xy[-1, :]) / 2, xy[-1, :], xy[-1, :]]
68
@@ -72,7 +72,7 @@ def colored_line(x, y, c, ax=None, **lc_kwargs):
72
# Plot the line collection to the axes
73
ax = ax or plt.gca()
74
ax.add_collection(lc)
75
- ax.autoscale_view(scalex=scalex, scaley=scaley)
+ ax.autoscale_view()
76
77
return lc
78
0 commit comments