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

Move papersize="auto" deprecation to backend_bases.#26959

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
ksunden merged 1 commit intomatplotlib:mainfromanntzer:psa
Oct 2, 2023

Conversation

anntzer
Copy link
Contributor

This makes it easier for mplcairo (which also outputs PostScript natively) to inherit the deprecation and be able to run the matplotlib test suite both with matplotlib 3.7 (where there should be no warning) and with matplotlib 3.8 (where there should be a warning).

PR summary

PR checklist

@anntzeranntzer added this to thev3.8.1 milestoneSep 29, 2023
@@ -867,9 +867,6 @@ def _print_figure(
# find the appropriate papertype
width, height = self.figure.get_size_inches()
if papertype == 'auto':
_api.warn_deprecated("3.8", name="papertype='auto'",
addendum="Pass an explicit paper type, 'figure', or "
"omit the *papertype* argument entirely.")
papertype = _get_papertype(*orientation.swap_if_landscape((width, height)))
Copy link
Member

Choose a reason for hiding this comment

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

I would leave a comment about this here, or it might be forgotten when removing the deprecation in 3.10.

timhoffm reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

And/or add a comment to the new deprecation site, because that’s where we look at during the removal.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Sure, done.

@@ -1053,9 +1050,6 @@ def _print_figure_tex(
self.figure.get_size_inches())
else:
if papertype == 'auto':
_api.warn_deprecated("3.8", name="papertype='auto'",
Copy link
Member

Choose a reason for hiding this comment

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

Same thing about a comment here.

This makes it easier for mplcairo (which also outputs PostScriptnatively) to inherit the deprecation and be able to run the matplotlibtest suite both with matplotlib 3.7 (where there should be no warning)and with matplotlib 3.8 (where there should be a warning).
@ksundenksunden merged commit464f39b intomatplotlib:mainOct 2, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 2, 2023
@anntzeranntzer deleted the psa branchOctober 2, 2023 21:59
oscargus added a commit that referenced this pull requestOct 3, 2023
…959-on-v3.8.xBackport PR#26959 on branch v3.8.x (Move papersize="auto" deprecation to backend_bases.)
@ksundenksunden mentioned this pull requestNov 2, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@timhoffmtimhoffmtimhoffm approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.1
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@QuLogic@ksunden@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp