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

FIX: bbox_inches='tight' with only non-finite bounding boxes#13426

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

Conversation

tacaswell
Copy link
Member

@tacaswelltacaswell commentedFeb 13, 2019
edited
Loading

closes#13276

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@tacaswelltacaswell added this to thev3.0.3 milestoneFeb 13, 2019
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.

I thought I fixed this already,... must have been somewhere else....

fig, ax = plt.subplots()
ax.annotate("", xy=(0, float('nan')))
ax.set_axis_off()
fig.savefig("bar.png", bbox_inches='tight')
Copy link
Contributor

Choose a reason for hiding this comment

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

Please save to a BytesIO to avoid polluting the source tree.

tacaswell reacted with thumbs up emoji
@tacaswell
Copy link
MemberAuthor

@anntzer done an force-pushed.

@anntzer
Copy link
Contributor

can be merged post-ci

@tacaswelltacaswell merged commit6701206 intomatplotlib:masterFeb 18, 2019
@tacaswelltacaswell deleted the fix_nan_only_tightbbox branchFebruary 18, 2019 19:42
@tacaswell
Copy link
MemberAuthor

Self-merging on 3 approvals and CI passing.

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestFeb 18, 2019
dstansby added a commit that referenced this pull requestFeb 18, 2019
…426-on-v3.0.xBackport PR#13426 on branch v3.0.x (FIX: bbox_inches='tight' with only non-finite bounding boxes)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer approved these changes

@jklymakjklymakjklymak approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.0.3
Development

Successfully merging this pull request may close these issues.

calling annotate with nan values for the position still gives error after 3.0.2
4 participants
@tacaswell@anntzer@jklymak@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp