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 negative annotations xycoords.#4019

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
myshen wants to merge1 commit intomatplotlib:masterfrommyshen:annot_neg_coords

Conversation

myshen
Copy link
Contributor

Use top-right as translation reference point when xycoords are given in
"point" or "pixel" and x or y are negative. Logic based on
_get_xy_legacy removed ina65151b.

@tacaswell
Copy link
Member

Something looks wrong in the png output.

Use top-right as translation reference point when xycoords are given in"point" or "pixel" and x or y are negative. Logic based on_get_xy_legacy removed ina65151b.
@myshen
Copy link
ContributorAuthor

I missed editing one of the _get_xy_transform calls, but I don't think that is the cause of weird PNG output. Running the same test without the changes to text.py results in similar weirdness. I think it has to do with the particular coordinates in the test and the DPI. I will update the request for the additional _get_xy_transform but am unsure of the PNG weirdness.

@tacaswell
Copy link
Member

I think the issue is just that the test strings fall on top of each other.
Tweaking the arguments should be enough.

On Thu, Jan 22, 2015, 08:18 Matt Shennotifications@github.com wrote:

I missed editing one of the _get_xy_transform calls, but I don't think
that is the cause of weird PNG output. Running the same test without the
changes to text.py results in similar weirdness. I think it has to do with
the particular coordinates in the test and the DPI. I will update the
request for the additional _get_xy_transform but am unsure of the PNG
weirdness.


Reply to this email directly or view it on GitHub
#4019 (comment)
.

@myshen
Copy link
ContributorAuthor

162239f has the additional _get_xy_transform as wel as tweaked strings.

tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJan 26, 2015
@tacaswell
Copy link
Member

I am going to merge this on my local machine so that I can remove the pdf and svg tests (seetacaswell@d6e1577), I am just waiting for the tests to pass on travis before pushing to upstream.

@tacaswell
Copy link
Member

Merged asd6e1577

tacaswell added a commit that referenced this pull requestJan 26, 2015
    BUG : fix negative coords in annotationConflicts:lib/matplotlib/tests/test_text.pycherry pick was too aggressive picking up tests from master
@tacaswell
Copy link
Member

back-ported ascf23500

tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJul 31, 2015
…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.
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJun 15, 2023
…_neg_coords""This partially reverts commit7b71257.Too many tests were removed, restore the extra tests.
@tacaswelltacaswell mentioned this pull requestJun 15, 2023
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJun 21, 2023
…_neg_coords""This partially reverts commit7b71257.Too many tests were removed, restore the extra tests.
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestJun 21, 2023
…_neg_coords""This partially reverts commit7b71257.Too many tests were removed, restore the extra tests.
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestMar 6, 2024
…_neg_coords""This partially reverts commit7b71257.Too many tests were removed, restore the extra tests.
tacaswell added a commit to tacaswell/matplotlib that referenced this pull requestMar 21, 2024
…_neg_coords""This partially reverts commit7b71257.Too many tests were removed, restore the extra tests.
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
None yet
Projects
None yet
Milestone
v1.4.3
Development

Successfully merging this pull request may close these issues.

2 participants
@myshen@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp