Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 852f121

Browse files
authored
Merge pull request #24209 from anntzer/dwbc
List the webagg_core module in the sphinx docs.
2 parents 2a3d430 + d0642b2 commit 852f121

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

doc/api/backend_webagg_core_api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*******************************************
2+
``matplotlib.backends.backend_webagg_core``
3+
*******************************************
4+
5+
.. automodule:: matplotlib.backends.backend_webagg_core
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:

doc/api/index_backend_api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
backend_qt_api.rst
2121
backend_svg_api.rst
2222
backend_tk_api.rst
23+
backend_webagg_core_api.rst
2324
backend_webagg_api.rst
2425
backend_wx_api.rst

doc/api/prev_api_changes/api_changes_2.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Third-party backends should also migrate to the ``*_dashes`` methods.
296296
``NavigationToolbar2.dynamic_update``
297297
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
298298

299-
Use :meth:`.draw_idle` method on the ``Canvas`` instance instead.
299+
Use `~.FigureCanvasBase.draw_idle` method on the ``Canvas`` instance instead.
300300

301301

302302
Testing

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,10 +1116,10 @@ def __init__(self, interval=None, callbacks=None):
11161116
The time between timer events in milliseconds. Will be stored as
11171117
``timer.interval``.
11181118
callbacks : list[tuple[callable, tuple, dict]]
1119-
List of (func, args, kwargs) tuples that will be called upon
1120-
timer events. This list is accessible as ``timer.callbacks`` and
1121-
can be manipulated directly, or the functions `add_callback` and
1122-
`remove_callback` can be used.
1119+
List of (func, args, kwargs) tuples that will be called upon timer
1120+
events. This list is accessible as ``timer.callbacks`` and can be
1121+
manipulated directly, or the functions `~.TimerBase.add_callback`
1122+
and `~.TimerBase.remove_callback` can be used.
11231123
"""
11241124
self.callbacks = [] if callbacks is None else callbacks.copy()
11251125
# Set .interval and not ._interval to go through the property setter.

lib/matplotlib/backends/backend_webagg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
Displays Agg images in the browser, with interactivity
3-
"""
1+
"""Displays Agg images in the browser, with interactivity."""
42

53
# The WebAgg backend is divided into two modules:
64
#

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
Displays Agg images in the browser, with interactivity
3-
"""
1+
"""Displays Agg images in the browser, with interactivity."""
42
# The WebAgg backend is divided into two modules:
53
#
64
# - `backend_webagg_core.py` contains code necessary to embed a WebAgg

0 commit comments

Comments
 (0)