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

Appearance settings

Slightly improve output of dvi debug utilities, and tiny cleanups. #20165

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
Jun 11, 2021

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 5, 2021

New output of python -mmatplotlib.dviread /path/to/dvi for
$\frac{1}{2}$:

=== new page === (w: 261235, h: 553676, d: 225994)
font: 'cmr7'    scale: 0.4375
x       y       glyph   chr     w       (glyphs)
1061683 1183756 49      1       261235
1061683 1667786 50      2       261235
x       y       w       h               (boxes)
1061683 1291058 26213   261235

old output:

=== new page ===
font b'cmr7' scaled 0.4375
1061683 1183756 49 1 261235
1061683 1667786 50 2 261235
1061683 1291058 BOX 26213 261235

PR Summary

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

lib/matplotlib/dviread.py Outdated Show resolved Hide resolved
New output of `python -mmatplotlib.dviread /path/to/dvi` for
`$\frac{1}{2}$`:
```
=== new page === (w: 261235, h: 553676, d: 225994)
font: 'cmr7'    scale: 0.4375
x       y       glyph   chr     w       (glyphs)
1061683 1183756 49      1       261235
1061683 1667786 50      2       261235
x       y       w       h               (boxes)
1061683 1291058 26213 261235
```
old output:
```
=== new page ===
font b'cmr7' scaled 0.4375
1061683 1183756 49 1 261235
1061683 1667786 50 2 261235
1061683 1291058 BOX 26213 261235
```
@jklymak jklymak merged commit 1a639e2 into matplotlib:master Jun 11, 2021
@QuLogic QuLogic added this to the v3.5.0 milestone Jun 11, 2021
@anntzer anntzer deleted the dvidebug branch June 11, 2021 05:48
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.