Skip to content

Fix usetex_baseline_test. #16373

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 30, 2020

The previous version didn't actually compare usetex=False and
usetex=True because usetex state is stored in the text instance, so fix
that. (The custom axes subclass remains necessary to compare
text.latex.preview=False and =True.)

Also misc. cleanups.

old:
old
new:
new

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@codecov
Copy link

codecov bot commented Jan 30, 2020

Codecov Report

Merging #16373 into master will decrease coverage by 0.40%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16373      +/-   ##
==========================================
- Coverage   80.85%   80.45%   -0.41%     
==========================================
  Files         307      307              
  Lines       75745    74403    -1342     
  Branches     9690     9686       -4     
==========================================
- Hits        61245    59859    -1386     
- Misses      11961    11996      +35     
- Partials     2539     2548       +9     
Impacted Files Coverage Δ
lib/matplotlib/backends/backend_macosx.py 4.54% <0.00%> (-36.12%) ⬇️
lib/matplotlib/tests/test_font_manager.py 85.21% <0.00%> (-6.59%) ⬇️
lib/matplotlib/testing/jpl_units/StrConverter.py 15.55% <0.00%> (-5.28%) ⬇️
lib/matplotlib/testing/jpl_units/EpochConverter.py 69.69% <0.00%> (-4.67%) ⬇️
lib/matplotlib/tests/test_backends_interactive.py 87.75% <0.00%> (-4.41%) ⬇️
lib/matplotlib/docstring.py 65.00% <0.00%> (-3.19%) ⬇️
lib/matplotlib/backends/qt_compat.py 48.42% <0.00%> (-3.16%) ⬇️
...b/matplotlib/testing/jpl_units/UnitDblConverter.py 65.85% <0.00%> (-2.33%) ⬇️
lib/matplotlib/backend_managers.py 20.95% <0.00%> (-2.30%) ⬇️
lib/matplotlib/font_manager.py 73.73% <0.00%> (-1.55%) ⬇️
... and 152 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4dbf4e...edd2237. Read the comment docs.

@jklymak
Copy link
Member

jklymak commented Jan 30, 2020

You must be on codecov’s naughty list ;-)

@tacaswell tacaswell added this to the v3.3.0 milestone Feb 3, 2020
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

Despite the name, this isn't actually a test but a demo in the docs.

@anntzer
Copy link
Contributor Author

anntzer commented Feb 11, 2020

@tacaswell good to go? I have a followup PR which actually fixes the baseline problem in all cases :p

class Axes(maxes.Axes):

@maxes.subplot_class_factory
class Subplot(maxes.Axes):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use another name like LatexSubplot or similar to make it more explicit that this is something special and not to be confused with our regular subplot semantics.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

The previous version didn't actually compare usetex=False and
usetex=True because usetex state is stored in the text instance, so fix
that.  (The custom axes subclass remains necessary to compare
text.latex.preview=False and =True.)

Also misc. cleanups.
@anntzer anntzer force-pushed the usetex-baseline-test branch from edd2237 to 9fa950c Compare February 11, 2020 20:58
@timhoffm timhoffm merged commit 1cbb4cc into matplotlib:master Feb 11, 2020
@anntzer anntzer deleted the usetex-baseline-test branch February 11, 2020 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants