From 6a6927cc6876c3ac3ac783f83637da59d290d84c Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 14 Mar 2023 13:48:27 +0100 Subject: [PATCH] Add references to backend_{gtk3,gtk4,wx} in docs. These modules are not actual backends but rather serve as bases for the corresponding agg/cairo backends, but adding them to the docs allows referring to them from elsewhere. Note that backend_qt is already listed; _backend_tk is currently private but we could consider making it (or a subset of it) public like the others (I already rely on it in mplcairo, for example). --- doc/api/backend_gtk3_api.rst | 1 + doc/api/backend_gtk4_api.rst | 1 + doc/api/backend_wx_api.rst | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/api/backend_gtk3_api.rst b/doc/api/backend_gtk3_api.rst index 66c247555df4..bd6d71d6ccb2 100644 --- a/doc/api/backend_gtk3_api.rst +++ b/doc/api/backend_gtk3_api.rst @@ -8,5 +8,6 @@ dependency to building the docs. .. redirect-from:: /api/backend_gtk3agg_api .. redirect-from:: /api/backend_gtk3cairo_api +.. module:: matplotlib.backends.backend_gtk3 .. module:: matplotlib.backends.backend_gtk3agg .. module:: matplotlib.backends.backend_gtk3cairo diff --git a/doc/api/backend_gtk4_api.rst b/doc/api/backend_gtk4_api.rst index 8f2e38d885a8..278daa392b13 100644 --- a/doc/api/backend_gtk4_api.rst +++ b/doc/api/backend_gtk4_api.rst @@ -8,5 +8,6 @@ dependency to building the docs. .. redirect-from:: /api/backend_gtk4agg_api .. redirect-from:: /api/backend_gtk4cairo_api +.. module:: matplotlib.backends.backend_gtk4 .. module:: matplotlib.backends.backend_gtk4agg .. module:: matplotlib.backends.backend_gtk4cairo diff --git a/doc/api/backend_wx_api.rst b/doc/api/backend_wx_api.rst index abf506a161be..bec832da0c13 100644 --- a/doc/api/backend_wx_api.rst +++ b/doc/api/backend_wx_api.rst @@ -7,5 +7,6 @@ dependency to building the docs. .. redirect-from:: /api/backend_wxagg_api +.. module:: matplotlib.backends.backend_wx .. module:: matplotlib.backends.backend_wxagg .. module:: matplotlib.backends.backend_wxcairo