Wrong text baseline with usetex.#2015
Merged
mdboom merged 2 commits intomatplotlib:masterfrom May 16, 2013
Merged
Conversation
Member
|
Probably #1810, which changed how baselines are handled. I'll look into it. |
… 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).
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.] |
Contributor
Author
|
Thanks! This fixes the problem. |
mdboom
added a commit
that referenced
this pull request
May 16, 2013
Wrong text baseline with usetex.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With current master, examples/pylab_examples/usetex_baseline_test.py produces the following image. And the baseline is wrong when usetex is used.
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?