Skip to content
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

Merged
merged 2 commits into from
May 13, 2019
Merged

Conversation

timhoffm
Copy link
Member

No description provided.

@timhoffm timhoffm added this to the v3.1.1 milestone May 12, 2019
@@ -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)
Copy link
Member Author

@timhoffm timhoffm May 12, 2019

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.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

markers

Copy link
Contributor

@anntzer anntzer left a 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

@jklymak
Copy link
Member

jklymak commented May 13, 2019

I pushed a fix for the typo(s)...

@timhoffm timhoffm merged commit 7986245 into matplotlib:master May 13, 2019
@timhoffm timhoffm deleted the doc-xcorr branch May 13, 2019 19:47
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 13, 2019
tacaswell added a commit that referenced this pull request May 13, 2019
…197-on-v3.1.x

Backport PR #14197 on branch v3.1.x (Minor cleanup of acorr/xcoor docs)
@tacaswell tacaswell modified the milestones: v3.1.1, v3.1.0 May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants