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

Rev coord wrapping#4843

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

Closes#4292

…rds"This reverts commitd6e1577, reversingchanges made tob280f7d.For 1.4.0 tacaswell refactored annotations (matplotlib#2351 ) but missed that{'axes points', 'axes pixel', 'figure points', 'figure pixel'} werespecial cased to wrap. Presumably from the function name to maintainback compatibility. This was an unintentional and undocumented APIbreak.This API break was noticed inmatplotlib#4012 and fixed inmatplotlib#4019 but that catchestoo many of the coordinate systems (should not be all things that startwith 'axes') so fixed one API, but broke others.There were two reasonable courses of action:    1. revert back to 1.4.2 behavior with nothing wrapping.    2. revert back to 1.3.1 behavior with somethings wrapping.In the discussion inmatplotlib#4292 where the consensus was to go withoption 1, hence this reversion.
This is codifying the API change that went it inmatplotlib#2351
@tacaswelltacaswell added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJul 31, 2015
@tacaswelltacaswell added this to thenext point release milestoneJul 31, 2015
@tacaswell
Copy link
MemberAuthor

@tacaswell
Copy link
MemberAuthor

Note to self: this needs to be backported to color_overhaul (which I am not quite sure why we still have around).

@efiring
Copy link
Member

I can't do any in-depth check, but I agree with the change, and all tests pass. (And I've also been wondering about whether we still need color_overhaul.)

@tacaswell
Copy link
MemberAuthor

@matplotlib/developers This is a blocker for the next release, can this be merged?

@dopplershift
Copy link
Contributor

Looks sane to me.

dopplershift added a commit that referenced this pull requestAug 6, 2015
@dopplershiftdopplershift merged commit4b25853 intomatplotlib:masterAug 6, 2015
@tacaswelltacaswell deleted the REV_coord_wrapping branchAugust 6, 2015 19:17
plt.text(3, 4, t, family='monospace', ha='right', wrap=True)
plt.text(-1, 0, t, fontsize=14, style='italic', ha='left', rotation=-15,
wrap=True)
def test_annotation_negative_fig_coords():
Copy link
Member

Choose a reason for hiding this comment

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

Note: I'd love to get to the point where we used graphics contexts for testing some of this stuff, rather than images.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

What do you mean by graphics contexts in this context?

Copy link
Member

Choose a reason for hiding this comment

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

TheGraphicsContextBase and we simply check that the appropriate attributes are set at draw time.

It is another test completely to ensure that a backend is producing the appropriate pixels for a GraphicsContextBase, IMHO.

tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestSep 5, 2016
The flipped origin for negative values of physical units was removed inPRmatplotlib#4843 merged to master as4b25853
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestSep 5, 2016
The flipped origin for negative values of physical units was removed inPRmatplotlib#4843 merged to master as4b25853
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestSep 11, 2016
The flipped origin for negative values of physical units was removed inPRmatplotlib#4843 merged to master as4b25853
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestSep 12, 2016
The flipped origin for negative values of physical units was removed inPRmatplotlib#4843 merged to master as4b25853
@tacaswelltacaswell mentioned this pull requestJun 15, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v1.5.0
Development

Successfully merging this pull request may close these issues.

4 participants
@tacaswell@efiring@dopplershift@pelson

[8]ページ先頭

©2009-2025 Movatter.jp