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

Wrong text baseline with usetex.#2015

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 2 commits intomatplotlib:masterfrommdboom:usetex-baseline-fixes
May 16, 2013

Conversation

mdboom
Copy link
Member

With current master, examples/pylab_examples/usetex_baseline_test.py produces the following image. And the baseline is wrong when usetex is used.

figure_1

It used to work fine and it still does in v1.2.x.

http://matplotlib.org/examples/pylab_examples/usetex_baseline_test.html

Any clue what changed this?

@mdboom
Copy link
Member

Probably#1810, which changed how baselines are handled. I'll look into it.

@ghostghost assignedmdboomMay 15, 2013
… baseline handling was broken for text.usetex = True. This brings it inline with everything else (where the assumption is that y == 0 is the baseline and not the bottom).
@mdboom
Copy link
Member

@leejjoon: I think this should do it.

[Background:#1810 changed things so the backends were passed the location of the baseline, rather than the bottom, of the text for draw_text. This is much more natural for most backends (other than Agg) and simplified a number of things. This just brings the draw_tex methods inline with that.]

@leejjoon
Copy link
ContributorAuthor

Thanks! This fixes the problem.

mdboom added a commit that referenced this pull requestMay 16, 2013
@mdboommdboom merged commit4ed18ca intomatplotlib:masterMay 16, 2013
@mdboommdboom deleted the usetex-baseline-fixes branchAugust 7, 2014 13:52
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@leejjoon

[8]ページ先頭

©2009-2025 Movatter.jp