Skip to content

Commit 9976689

Browse files
authored
Implementation of backend plotting for convergence_plot (#647)
* Implementation of grid plot functions for plotly and matplotlib * Refactor convergence_plot to use backend plotting
1 parent 5bf11e5 commit 9976689

File tree

7 files changed

+595
-220
lines changed

7 files changed

+595
-220
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
nb_execution_mode = "force" # "off", "force", "cache", "auto"
174174
nb_execution_allow_errors = False
175175
nb_merge_streams = True
176+
nb_scroll_outputs = True
176177

177178
# Notebook cell execution timeout; defaults to 30.
178179
nb_execution_timeout = 1000

docs/source/how_to/how_to_change_plotting_backend.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
"\n",
3939
"The returned figure object is a [`matplotlib.axes.Axes`](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.html).\n",
4040
"\n",
41+
"```{note}\n",
42+
"In case of grid plots (such as `convergence_plot` or `slice_plot`), the returned object is a 2-dimensional numpy array of `Axes` objects: [`numpy.ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html)[[`matplotlib.axes.Axes`]](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.html) of shape `(n_rows, n_cols)`.\n",
43+
"```\n",
44+
"\n",
4145
":::\n",
4246
"\n",
4347
"::::"

0 commit comments

Comments
 (0)