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: do not reset ylabel ha when changing position#18430

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
jklymak merged 1 commit intomatplotlib:masterfromtacaswell:fix_no_realign_ylabel
Sep 23, 2020

Conversation

tacaswell
Copy link
Member

PR Summary

closes#18427

This line came in viab2a80a7 /#1589 . It looks like everything still passes without it (!!) so I think that means either we never needed it or the work done since then on the colorbar code has made it redundant.

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • [N/A ] New features are documented, with examples if plot related.
  • [N/A] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings andpydocstyle<4 and runflake8 --docstring-convention=all).
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

andrzejnovak reacted with thumbs up emoji
@tacaswelltacaswell added this to thev3.4.0 milestoneSep 7, 2020
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.

Looks, good, though I don't understand why you added an import 😉

Comment on lines 6522 to 6523
fig = Figure()
ax = fig.gca()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fig=Figure()
ax=fig.gca()
fig,ax=plt.subplots()

timhoffm reacted with thumbs up emoji
@tacaswell
Copy link
MemberAuthor

I was intentionally writing the tests to not invoke the pyplot machinery to see how it feels.

@jklymak
Copy link
Member

I was intentionally writing the tests to not invoke the pyplot machinery to see how it feels.

It feels like you had to do an extra import for no good reason. 😉 I'm not blocking, but I'd usefig.add_subplots() rather thangca() if we want to develop good grammar for this?

timhoffm reacted with thumbs up emoji

@timhoffm
Copy link
Member

I'm ok with the extra import, but agree, thatfig.add_subplots() would be better thangca(), the latter being too pyploty.

On a general note: What is the motivation to leave out pyplot? Is there a perfromance benefit, or is it the desire to reduce the dependency on pyplot. Is there a plan to move larger parts of the tests away from pyplot?

@tacaswelltacaswellforce-pushed thefix_no_realign_ylabel branch 2 times, most recently from708c0f3 to95d2158CompareSeptember 23, 2020 15:18
@tacaswell
Copy link
MemberAuthor

Only took 4 rebases...

dopplershift reacted with laugh emoji

@jklymakjklymak merged commit2486ba2 intomatplotlib:masterSep 23, 2020
@tacaswelltacaswell deleted the fix_no_realign_ylabel branchSeptember 23, 2020 19:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dopplershiftdopplershiftdopplershift approved these changes

@jklymakjklymakjklymak approved these changes

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

Successfully merging this pull request may close these issues.

yaxis.set_label_position("right") resets "horizontalalignment"
5 participants
@tacaswell@jklymak@timhoffm@dopplershift@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp