Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Improve Figure docstrings#10595

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
anntzer merged 2 commits intomatplotlib:masterfromtimhoffm:doc-figure
Mar 3, 2018
Merged

Conversation

timhoffm
Copy link
Member

PR Summary

The title says all.

Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

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

This seems fine, except for the one typo (IMO) at the beginning.

@@ -152,7 +152,7 @@
default to the current image.

cax : :class:`~matplotlib.axes.Axes` object, optional
Axis into which the colorbar will be drawn
Axis into which the colorbar will be drawn.
Copy link
Member

Choose a reason for hiding this comment

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

Should be "Axes"

@timhoffm
Copy link
MemberAuthor

timhoffm commentedFeb 25, 2018
edited
Loading

Strange. Just updated a typo in a docstring and suddenly an image comparison test fails. Did anything else in the build environment change?
Note that the rms 0.011 is only slightly larger than the given tolerance 0.01 for the test.

@jklymak
Copy link
Member

Yeah, I've seen the same thing. Restarting the job often gets it to pass. Not sure what causes the instability.

@timhoffm
Copy link
MemberAuthor

Is there a way to restart just a specific CI service or job? Up to now, I've usually rebased in such a case, which then triggers the CI as a side effect.

@jklymak
Copy link
Member

For Travis, you can just hit restart.

For appveyor I think you need to log in and can restart. Its a bit of a pain.

@QuLogic
Copy link
Member

The failures are consistent across tests, but I'm not sure why they suddenly started appearing.

@timhoffm
Copy link
MemberAuthor

From the changed rms I would assume that some commit slightly changed the output, just about enough to make this test fail.

@timhoffm
Copy link
MemberAuthor

Rebased.

axes = property(fget=_get_axes,
doc="List of axes in the Figure. You can access and "
"modify the axes in the Figure through this list. "
"Do not modify the list itself. Instead, use "
Copy link
Contributor

Choose a reason for hiding this comment

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

the second and third sentence are contradicting each other.

Copy link
MemberAuthor

@timhoffmtimhoffmMar 1, 2018
edited
Loading

Choose a reason for hiding this comment

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

No. Assumefig.axes being[ax1, ax2]. You can access and modifyax1, e.g.fix.axes[0].set_xlim(0, 1). But you cannot add or remove an axes from the figure byfig.axes.append(ax3) or similar.

Suggestions how to describe this more clearly are welcome.

Copy link
Contributor

Choose a reason for hiding this comment

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

just remove the "and modify" in the first sentence? it's not as if python had a notion of const reference anyways...

return self.dpi

def get_frameon(self):
"""Get the boolean indicatingframeon."""
"""Return a bool indicatingwhether the figure frame will be dawn."""
Copy link
Contributor

Choose a reason for hiding this comment

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

I tend to write these just as "return whether ..." which seems less verbose and just as clear.
Also typo: dawn.

@anntzeranntzer merged commit609e9bf intomatplotlib:masterMar 3, 2018
@anntzer
Copy link
Contributor

thanks

@timhoffmtimhoffm deleted the doc-figure branchMarch 3, 2018 23:37
@tacaswelltacaswell added this to thev2.2.3 milestoneAug 5, 2018
tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull requestAug 5, 2018
Improve Figure docstringsConflicts:lib/matplotlib/figure.py          - kept master version of docstring in 2 cases
@tacaswelltacaswell mentioned this pull requestAug 5, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v2.2.3
Development

Successfully merging this pull request may close these issues.

6 participants
@timhoffm@jklymak@QuLogic@anntzer@tacaswell@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp