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 label vertical alignment can now be specified#7970

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

Closed
NelleV wants to merge2 commits intomatplotlib:masterfromNelleV:fix_7905
Closed

FIX label vertical alignment can now be specified#7970

NelleV wants to merge2 commits intomatplotlib:masterfromNelleV:fix_7905

Conversation

NelleV
Copy link
Member

@NelleVNelleV commentedJan 28, 2017
edited
Loading

This patch adds a new rcParams allowing to set label vertical alignment. The
sole reason for the existance of this new parameter is to allow user to reset
the style to before 2.0 for testing purposes.

This patch provides a fix to a very pick backward compatibility break. Unfortunately, the
patch that introduces this break also regenerated the test images. This leads to the introduction of a private _test_class stylesheet, corresponding to our current test suite, and a classic stylesheet which is backward compatible.

refs#7905

TODO

  • Document this new parameter

@NelleVNelleV added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJan 28, 2017
@NelleVNelleV added this to the2.0.1 (next bug fix release) milestoneJan 28, 2017
@@ -18,6 +18,12 @@ values is a single line of python
See :ref:`customizing-with-matplotlibrc-files` for details about how to
persistently and selectively revert many of these changes.

.. note::
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 give this a'YTick alignment' section in the'Tick Label Formatting' section. We don't have completely throw our selves under the bus in the first section. I don't think this needs to be called out in a note, merging it into the paragraph above would be enough.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

👍 on the name and section. Finding a better name was on my todo list.

This patch adds a new rcParams allowing to set label vertical alignment. Thesole reason for the existance of this new parameter is to allow user to resetthe style to before 2.0 for testing purposes.closes#7905
This allows the public classic stylesheet to be 'more' backward compatible
@NelleVNelleV changed the title[WIP] FIX label vertical alignment can now be specified[MRG] FIX label vertical alignment can now be specifiedJan 28, 2017
@NelleV
Copy link
MemberAuthor

attn @matplotlib/developers
This patch introduces a new "private" stylesheet called _classic_test. The "classic" stylesheet can now be 'more' backward compatible without breaking our test suite.

@anntzer
Copy link
Contributor

What is the argument for adding yet another private rcparam (which the codebase will have to keepa round for a while) rather than regenerating the test suite images (which is a one shot thing)?

@NelleV
Copy link
MemberAuthor

@anntzer It is not private. It is actually used in the classic stylesheet. It is for backward compatibility.
See #refs#7905

@anntzer
Copy link
Contributor

Ah, I see, sorry for the noise.
Still, could we just not add the "_classic_test" style and regenerate the test images with the new "ytick.alignment: center" rcparam?

@NelleV
Copy link
MemberAuthor

It's around 350 images to regenerate. It's makes the git repository grow massively :(

I'll let@tacaswell give the final word on this.

@WeatherGod
Copy link
Member

For consistency's sake, we should also have an xtick version of this parameter.

I am disappointed that we seemed to have updated our baseline images, thereby causing this discrepancy between our classic style used by our tests and the classic style used by our users, but I agree that it would be much more harmful to regenerate these images for such a tiny change. We run the risk of a more serious error during the regeneration process.

@tacaswell
Copy link
Member

I am still in favor of the extra style sheet and 👍 on doing x as well.

@QuLogic
Copy link
Member

With the pytest migration, it would be simpler if you rebased on and targettedv2.0.x directly, then resolving the conflictupwards would be less work. Could you do so and add the 'x' version that@tacaswell requested?

@NelleV
Copy link
MemberAuthor

This patch is going to be a mess to apply both on master and v2.0.x
I suspect we may have to create two pull requests.

@NelleV
Copy link
MemberAuthor

I am closing this in favor of#8081 : same patch, targetting v2.0.x.

@NelleVNelleV closed thisFeb 15, 2017
@QuLogicQuLogic changed the title[MRG] FIX label vertical alignment can now be specifiedFIX label vertical alignment can now be specifiedApr 30, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell left review comments

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

Successfully merging this pull request may close these issues.

5 participants
@NelleV@anntzer@WeatherGod@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp