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

Backport PR #26629 on branch v3.8.x (DOC: organize figure API)#26783

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

Conversation

meeseeksmachine
Copy link
Contributor

Backport PR#26629: DOC: organize figure API

@lumberbot-applumberbot-appbot added this to thev3.8.1 milestoneSep 15, 2023
@lumberbot-applumberbot-appbot added the Documentation: APIfiles in lib/ and doc/api labelSep 15, 2023
@ksunden
Copy link
Member

Since this is no longer usingautomodule,SubplotParams, which was moved out ofFigure on main (#26634) is still required in the figure module here,@jklymak@timhoffm do you have a preference for where that gets added?

  • In its own subheading?
  • UnderSubplotLayout
  • underdiscouraged or deprecated (which seems not quite right, though thelocation fits)
  • something else?
  • forgo backporting this change?

@ksunden
Copy link
Member

I suppose the other option would be to add the doc ingridspec, even though the implementation didn't change for this branch? feels slightly odd to do that, though

@jklymak
Copy link
Member

Sorry, a bit confused - moving SubplotParams didn't get in 3.8?

@timhoffm
Copy link
Member

timhoffm commentedSep 15, 2023
edited
Loading

Sorry, a bit confused - moving SubplotParams didn't get in 3.8?

No. I just tagged it for 3.9 to be on the safe side (the fully qualified class name changes) and because I thought there is no hurry.

What a mess. This is surprisingly nasty. I'm afraid every solution to bring this backport into 3.8.1 is a nuissance.

Options:

  1. "I suppose the other option would be to add the doc in gridspec, even though the implementation didn't change for this branch?"
    Pro: The doc is forward compatible.
    Con:SubplotParams is not part ofgridspec in 3.8. -> We need to backport the above moving PR to 3.8.1
  2. Put the doc back infigure docs somewhere.
    Pro: Documentation place matches still implementation place.
    Con: We have to remove it for 3.9 again, which we will forget. - Can we only do this in the 3.8.x branch or will that be merged back into master?
  3. Do not backport this PR.
    Pro: Straight forward solution
    Pro: It's a real improvement and holding it back still half a year would be a pity.

My preference is exactly 1 > 2 > 3, assuming we are sure enough#26634 is safe for a bugfix release.

@QuLogic
Copy link
Member

  1. Put the doc back infigure docs somewhere.
    Pro: Documentation place matches still implementation place.
    Con: We have to remove it for 3.9 again, which we will forget. - Can we only do this in the 3.8.x branch or will that be merged back into master?

Where would it go?

Yes, the branch will be merged back up when a release is made. However, I don't think there's any worry about it being forgotten. I think there will be a conflict between the two branches due to the slightly different contents,. Additionally the failures here are for.SubplotParams.update (no module specified), meaning that docs should fail if we have it documented in two places, as Sphinx will warn about ambiguous references.

:nosignatures:

Figure.savefig

Choose a reason for hiding this comment

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

There are 2 new lines here, before the next section. This spacing is inconsistent in other parts of the code. Some sections have 1 new line before them and some have 2. It would be good if there can be some uniformity.

@ksunden
Copy link
Member

I've decided to forgo this change for the 3.8.1 release, in the interest of getting that tagged. We could still try to do it for 3.8.2 if we want, but I think it will be a manual backport including both the changes here and from#27110

@QuLogicQuLogic removed this from thev3.8.1 milestoneOct 31, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@prabhav131prabhav131prabhav131 left review comments

Assignees
No one assigned
Labels
Documentation: APIfiles in lib/ and doc/api
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@meeseeksmachine@ksunden@jklymak@timhoffm@QuLogic@prabhav131

[8]ページ先頭

©2009-2025 Movatter.jp