Conversation
| $\overline{v}$. The default is to display $1 - v$. | ||
|
|
||
| one_half : str, default: r"\frac{1}{2}" | ||
| one_half : str, default: r"\\frac{1}{2}" |
There was a problem hiding this comment.
The backslash was missing from the rendered version, so will have to check it this gets it back...
There was a problem hiding this comment.
This seems to render correctly. (One may question if the r should be there, but if it is one can copy-and-paste it...
There was a problem hiding this comment.
Maybe make the whole docstring raw. Then you don't need backslash doubling here (but can keep the r prefix for copying).
There was a problem hiding this comment.
It is raw, which is why I had to test to see what happened. I do not really understand why I need to escape it, but that seems to do the trick...
matplotlib/lib/matplotlib/ticker.py
Lines 1145 to 1153 in a254b68
There was a problem hiding this comment.
Ok, I'm confused. This feels like a bug in sphinx. But I question that it's worth tracking down.
There was a problem hiding this comment.
Yeah, not obvious why it is required.
…743-on-v3.9.x Backport PR #28743 on branch v3.9.x (Minor fixes in ticker docs)
PR summary
While preparing a presentation I saw some minor issues.
PR checklist