-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor cleanup of acorr/xcoor docs #14197
Conversation
@@ -18,10 +18,24 @@ | |||
fig, [ax1, ax2] = plt.subplots(2, 1, sharex=True) | |||
ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, lw=2) | |||
ax1.grid(True) | |||
ax1.axhline(0, color='black', lw=2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: xcorr(usevlines=True)
does already produce a horizontal line. So this is redundant.
lib/matplotlib/axes/_axes.py
Outdated
using `Axes.vlines`. Additionally, a horizontal line is plotted | ||
at y=0 using `Axes.axhline`. | ||
|
||
If ``False``, makers are plotted at the xcorr values using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
markers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one typo(?), anyone can merge after that's fixed
I pushed a fix for the typo(s)... |
…197-on-v3.1.x Backport PR #14197 on branch v3.1.x (Minor cleanup of acorr/xcoor docs)
No description provided.