-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add \underline to mathtext #15624
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
Add \underline to mathtext #15624
Conversation
let me take a look |
Make type lists fit in a single line. A strict reading suggests that all types should be separated with ` or ` rather than a comma, but avoiding a backslash continuation seems more useful. Also, *s* can also be a str.
Fix validate_markevery docstring markup.
This was introduced in 2015 when support for running nose tests via `setup.py test` was removed. We do not need to explicitly tell people anymore that this is not possible.
Remove dummy test command from setup.py
They are instead replaced by slightly roundabout ways to get hold of the same objects (CompilerError, CCompiler). Only distutils.sysconfig remains; we should investigate whether the stdlib's sysconfig is a satisfactory replacement for it.
As noted in the module docstring, there is a confusion between using a generic default MarkerStyle (empty) and the artist-specific one (e.g. scatter plots use `rcParams["scatter.marker"]`). Fortunately, direct construction of MarkerStyles (especially of empty ones) is hardly ever needed, so we can just make the parameter required.
…plate Fix typo in template of current dev-docs
Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: David Stansby <[email protected]>
Deprecate support for no-args MarkerStyle().
[Doc] colors.to_hex input & output
As for other APIs, this is less likely to be confused with the None object.
Add CPython 3.10 wheels
Unlike the Agg renderer, the Cairo renderer exists forever and is at the DPI when the figure was created. This needs to be updated before drawing or things in physical sizes (e.g., text or line widths) will be the wrong size.
Otherwise, `FigureCanvasBase.get_width_height` returns a size scaled down by the current pixel ratio, even though the DPI is not scaled up. This causes the saved figure to be cropped.
Remove generated file accidentally added in matplotlib#20867
set_dashes does not support offset=None anymore.
Simplify setting Legend attributes
@QuLogic you can remove the "work in progress" tag for this. It's ready to be reviewed. Thanks! |
@@ -2915,6 +2922,26 @@ def overline(self, s, loc, toks): | |||
hlist = Hlist([rightside]) | |||
return [hlist] | |||
|
|||
def underline(self, s, loc, toks): | |||
(body,), = toks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your perseverance with this. Is it possible the test coverage could hit these missing lines?
@wesbarnett popping to draft until the rebase gets figured out.... You may need to follow instructions at https://discourse.matplotlib.org/t/default-branch-renamed-with-minor-edit-to-history/22367/2 Thanks! |
There haven't been any updates here for a while. Unless I am mistaken, this is not extremely hard to implement. The details are in node 735 of TeX, but it doesn't look that's what's happening here? |
I think mimicking TeX's behaviour is straightforward. Not sure how exactly I can open another pull request to implement it if that's okay. |
I'm not a TeX expert, but if you have a straight-forward solution, please go ahead and open a new PR. |
Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it. |
It looks like there are two PRs trying to solve the same issue here - this one and #23616. Any chance @wesbarnett and @tfpf could team up or review each other's work so this feature can move forward? Thanks! |
Looks like @tfpf opened the other PR because this one had stalled.... |
Initially, I though this approach could be improved by applying the
Note that the SVG and PNG backends render the image differently. I got stuck here, and documented it in #23763. Still unable to figure out why that happens. |
My PR is so far off with |
PR Summary
Implements #14235 to add \underline to mathtext.
PR Checklist