Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Updated plot_date to NumPy/SciPy style #7033

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

Merged
merged 6 commits into from
Sep 14, 2016

Conversation

klaragerlei
Copy link
Contributor

Hello,

We updated the documentation of plot_date to NumPy/SciPy style.

Thanks,
Michael, Klara

@NelleV

@klaragerlei klaragerlei changed the title Updated plot_date documentation to NumPy/SciPy style DOC Updated plot_date to NumPy/SciPy style Sep 5, 2016
@@ -1408,59 +1408,66 @@ def plot(self, *args, **kwargs):
def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
**kwargs):
"""
Plot with data with dates.
A plot with data that contains dates.
Copy link
Member

Choose a reason for hiding this comment

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

These tabs need to be replaced with the correct number of spaces.

@QuLogic
Copy link
Member

QuLogic commented Sep 6, 2016

It appears you have not set the config for your git client. All your commits are attributed to "Your Name [email protected]", which is probably not what you want.

See Also
--------
mod : matplotlib.dates for helper functions
func : matplotlib.dates.date2num
Copy link
Member

Choose a reason for hiding this comment

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

There is a strange indentation here.
In addition, we need to revert back to the old syntax: :func:~matplotlib.dates.date2num for proper formatting.

@NelleV
Copy link
Member

NelleV commented Sep 6, 2016

Hi Michael & Klara,

The code currently has a mixture of tabs and space, due to gedit not being configured correctly. I can drop by at some point today to help you fix that.
line 1459 also appears to be too long.
Once this is fixed, I think looks great!

Thanks,
Nelle

Similar to the :func:`~matplotlib.pyplot.plot` command, except
A plot with data that contains dates.

Similar to the :func:~matplotlib.pyplot.plot command, except
Copy link
Member

Choose a reason for hiding this comment

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

The backticks should not have been removed here.

@QuLogic
Copy link
Member

QuLogic commented Sep 6, 2016

Please remember to correct the name and committer on the first commit.

@klaragerlei klaragerlei force-pushed the matplotlib_plot_date_docs branch from 92d6a88 to d1e7037 Compare September 7, 2016 10:05
@NelleV
Copy link
Member

NelleV commented Sep 7, 2016

@QuLogic FYI, we did it, but it requires rebasing and some quite complex operations. I don't think that should be a requirement for contributing to matplotlib (in addition, some people may want to stay anonymous).

@NelleV
Copy link
Member

NelleV commented Sep 7, 2016

@klaragerlei There is still a couple of problems: I can help you with those during a break or the tutors consulting hours tonight if you'd like.

@klaragerlei
Copy link
Contributor Author

klaragerlei commented Sep 7, 2016

That would be great @NelleV , thank you!
On 7 Sep 2016 11:29, "Nelle Varoquaux" [email protected] wrote:

@klaragerlei https://github.com/klaragerlei There is still a couple of
problems: I can help you with those during a break or the tutors consulting
hours tonight if you'd like.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#7033 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP4NnzXEa0B_GoXdRBinF5QGj8JmTizqks5qnpHWgaJpZM4J1KY4
.

ydate=False, **kwargs)

A plot with data that contains dates.

Copy link
Member

Choose a reason for hiding this comment

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

There is still some whitespace on this line.

@QuLogic
Copy link
Member

QuLogic commented Sep 9, 2016

It appears that you were able to take care of the rebasing? Just a small note that your name appears differently in some of the commits.

CI isn't happy right now, but it is raising a cryptic error. We will have to try a local build to figure out what is wrong.

Other Parameters
----------------
kwargs : class : matplotlib.lines.Line2D
properties : %(Line2D)s
Copy link
Member

Choose a reason for hiding this comment

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

Line2D gets expanded into several parameter listings; it should be on its own line. (And likely needs to be updated to match this formatting.)

@klaragerlei klaragerlei force-pushed the matplotlib_plot_date_docs branch from 8c3cea8 to e0b8239 Compare September 10, 2016 13:31
@NelleV
Copy link
Member

NelleV commented Sep 14, 2016

Thanks a lot! This is looks great:

plot_date

@NelleV NelleV changed the title DOC Updated plot_date to NumPy/SciPy style [MRG+1] DOC Updated plot_date to NumPy/SciPy style Sep 14, 2016
@QuLogic
Copy link
Member

QuLogic commented Sep 14, 2016

Are you okay with some commits using your GitHub username and not your real name like the rest of them? Also, all but the second-last commit use the email of @clairesophie but the name is @klaragerlei. Please double-check that you will be attributed correctly.

@NelleV
Copy link
Member

NelleV commented Sep 14, 2016

This PR has been done as pair coding, so it is going to be hard to attribute it properly.

@klaragerlei
Copy link
Contributor Author

@QuLogic I think I managed to fix the double account problem, and it's all correct now, thank you for noticing.

@NelleV NelleV merged commit 0309e38 into matplotlib:master Sep 14, 2016
@NelleV
Copy link
Member

NelleV commented Sep 14, 2016

@klaragerlei Thanks!

tacaswell pushed a commit that referenced this pull request Sep 14, 2016
DOC Updated plot_date to NumPy/SciPy style
@tacaswell
Copy link
Member

backported to v2.x as 2ddc50e

@QuLogic
Copy link
Member

QuLogic commented Sep 14, 2016

There were still two emails with the same name used for different commits; are they the same person?

@klaragerlei
Copy link
Contributor Author

Yes, both of them are mine, sorry, one of them is a university email
address, and the other one is personal. I realized that the university
email address might not be permanent enough, so I switched to using the
other one, but I used that email address ages ago on github for
contributing to a funny robot game, but I completely forgot (this is how
the other account appeared in my commit when I used the personal email in
the configurations), but now I deleted the old account and added both
emails to the same account, so I hope it's all fine now.

On 14 September 2016 at 22:51, Elliott Sales de Andrade <
[email protected]> wrote:

There were still two emails with the same name used for different commits;
are they the same person?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#7033 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP4Nn64XfFRElOwWjqnsx6NIaYRVCoAKks5qqGxcgaJpZM4J1KY4
.

@QuLogic QuLogic added this to the 2.0 (style change major release) milestone Sep 17, 2016
@QuLogic QuLogic changed the title [MRG+1] DOC Updated plot_date to NumPy/SciPy style DOC Updated plot_date to NumPy/SciPy style Oct 16, 2016
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