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: propagate _is_saving state when changing canvases#17602

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

PR Summary

We have logic to draw animated artists if we are rendering due to
savefig (as opposed to rendering to put into a GUI). Not every canvas
class can write every format so we can switch the canvas as save time
based on the requested extension / format. Make sure we set the sate
on the canvas we are actually using to save the figure rather than the
canvas that is attached to the figure when we start saving.

closes#17599

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant

We have logic to draw animated artists if we are rendering due tosavefig (as opposed to rendering to put into a GUI).  Not every canvasclass can write every format so we can switch the canvas as save timebased on the requested extension / format.  Make sure we set the sateon the canvas we are actually using to save the figure rather than thecanvas that is attached to the figure when we start saving.closesmatplotlib#17599
@tacaswelltacaswell added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJun 9, 2020
@tacaswelltacaswell added this to thev3.2.2 milestoneJun 9, 2020
Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

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

lgtm (modulo ci)

Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

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

lgtm (modulo ci)

Copy link
Contributor

@anntzeranntzer left a comment

Choose a reason for hiding this comment

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

lgtm (modulo ci)

@QuLogicQuLogic merged commitc5f8969 intomatplotlib:masterJun 10, 2020
@lumberbot-app
Copy link

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v3.2.x$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 c5f89696ae5b7908732696956c16fc6ba724fb38
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #17602: FIX: propagate _is_saving state when changing canvases'
  1. Push to a named branch :
git push YOURFORK v3.2.x:auto-backport-of-pr-17602-on-v3.2.x
  1. Create a PR against branch v3.2.x, I would have named this PR:

"Backport PR#17602 on branch v3.2.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free tosuggest an improvement.

@tacaswelltacaswell deleted the fix_mixed_canvas_animation_save branchJune 10, 2020 15:11
tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull requestJun 10, 2020
…anging canvasesMerge pull requestmatplotlib#17602 from tacaswell/fix_mixed_canvas_animation_saveFIX: propagate _is_saving state when changing canvasesConflicts:lib/matplotlib/backend_bases.py         - other nearby changes, only backport the context manager           related changeslib/matplotlib/tests/test_figure.py         - did not backport the other tests that are currently only on           master branch.
QuLogic added a commit that referenced this pull requestJun 10, 2020
…-v3.2.xBackport PR#17602: FIX: propagate _is_saving state when changing can…
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v3.2.2
Development

Successfully merging this pull request may close these issues.

Saving issue with pdf backend
3 participants
@tacaswell@QuLogic@anntzer

[8]ページ先頭

©2009-2025 Movatter.jp