Skip to content

Commit 16ae8b8

Browse files
committed
docs add matplotlib.sphinxext.plot_directive
1 parent 503f05a commit 16ae8b8

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

docs/conf.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131
extensions = [
3232
"sphinx.ext.autodoc",
3333
"sphinx.ext.doctest",
34+
"sphinx.ext.mathjax", # LaTeX math rendering
3435
"sphinx.ext.napoleon", # support google and numpy docstring style
3536
"sphinx.ext.viewcode",
36-
"sphinx.ext.mathjax", # LaTeX math rendering
3737
"sphinxcontrib.bibtex", # Bibliography management
38+
"matplotlib.sphinxext.plot_directive", # Matplotlib plots rendering
3839
]
39-
# "matplotlib.sphinxext.plot_directive" to generate matplotlib plots in the documentation
40-
# see https://matplotlib.org/stable/api/sphinxext_plot_directive_api.html
41-
4240

4341
# Add any paths that contain templates here, relative to this directory.
4442
templates_path = ["_templates"]
@@ -49,7 +47,6 @@
4947
# This pattern also affects html_static_path and html_extra_path.
5048
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5149

52-
5350
# -- Options for HTML output -------------------------------------------------
5451

5552
# The theme to use for HTML and HTML Help pages. See the documentation for a list of builtin themes.
@@ -69,3 +66,17 @@
6966
bibtex_bibfiles = ["./bibliography/bibliography.bib"]
7067
bibtex_encoding = "latin"
7168
# bibtex_reference_style = "alpha" # alpha, plain , unsrt, and unsrtalpha
69+
70+
# matplotlib.sphinxext.plot_directive
71+
# https://matplotlib.org/stable/api/sphinxext_plot_directive_api.html
72+
73+
# plot_include_source = True
74+
# plot_html_show_source_link =
75+
# plot_pre_code =
76+
# plot_basedir =
77+
# plot_formats =
78+
# plot_html_show_formats =
79+
# plot_rcparams =
80+
# plot_apply_rcparams =
81+
# plot_working_directory =
82+
# plot_template =

0 commit comments

Comments
 (0)