Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Milestone
Description
I was running into some accessibility audit errors with Jupyter Book, and it made me realize that the_repr_html_
method of Figures doesn't outputimg
elements that havealt
tags (something that screen readers like).
It seems that the relevant code is here:
matplotlib/lib/matplotlib/figure.py
Line 378 in59acd5c
def_repr_html_(self): |
and then uses the template that's referenced here:
tpl=Path(core.FigureManagerWebAgg.get_static_file_path(), |
Maybe using this?
I wonder if this could be a relatively simple fix by making the figure title thealt
tag by default, and if it doesn't exist, just making it something likeFigure
?