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

Rotated text element misalignment in Agg#1968

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
mdboom merged 1 commit intomatplotlib:masterfrommdboom:rotated_text
May 2, 2013

Conversation

mdboom
Copy link
Member

There is an alignment problem with rotated text elements in master when using the agg backend. In the svg and pdf output the two texts from the following example are aligned to the blue baselines as intended, whereas the png (agg) output doesn't provide the expected result.

plt.axhline(.5)plt.axvline(.4)plt.axvline(.6)plt.xlim(0, 1)plt.ylim(0, 1)plt.text(.4, .5, "abcd", rotation=90, rotation_mode="anchor", va="baseline")plt.text(.6, .5, "efgh", rotation=90, rotation_mode="anchor", va="baseline")plt.savefig("roated_baseline.pdf")plt.savefig("roated_baseline.png")

test

A side effect from#1810 perhaps?

@ghostghost assignedmdboomMay 2, 2013
@mdboom
Copy link
Member

I'll look into it.

@mdboom
Copy link
Member

Pretty silly error, actually.@pwuertz: Would you mind confirming that this works?

@pwuertz
Copy link
ContributorAuthor

Jep, perfect. Thanks for that super-fast fix :).

mdboom added a commit that referenced this pull requestMay 2, 2013
Rotated text element misalignment in Agg
@mdboommdboom merged commit3120e6c intomatplotlib:masterMay 2, 2013
@mdboommdboom deleted the rotated_text branchAugust 7, 2014 13:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@mdboommdboom

Labels
None yet
Projects
None yet
Milestone
v1.3.x blocker
Development

Successfully merging this pull request may close these issues.

2 participants
@mdboom@pwuertz

[8]ページ先頭

©2009-2025 Movatter.jp