Skip to content

Commit 4628a47

Browse files
r3kstetimmens
andauthored
Implementation of backend plotting for slice_plot (#649)
Implementation of backend plotting for `slice_plot` --------- Co-authored-by: Tim Mensinger <[email protected]>
1 parent 10a0711 commit 4628a47

File tree

7 files changed

+508
-169
lines changed

7 files changed

+508
-169
lines changed

docs/source/how_to/how_to_slice_plot.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@
8383
"fig.show()"
8484
]
8585
},
86+
{
87+
"cell_type": "markdown",
88+
"metadata": {},
89+
"source": [
90+
":::{note}\n",
91+
"\n",
92+
"For details on using other plotting backends, see [How to change the plotting backend](how_to_change_plotting_backend.ipynb).\n",
93+
"\n",
94+
":::"
95+
]
96+
},
8697
{
8798
"cell_type": "markdown",
8899
"metadata": {},

src/optimagic/deprecations.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ def throw_none_valued_batch_evaluator_warning():
192192
warnings.warn(msg, FutureWarning)
193193

194194

195+
def throw_make_subplot_kwargs_in_slice_plot_future_warning():
196+
msg = (
197+
"The `make_subplot_kwargs` argument in `slice_plot` is deprecated and will be "
198+
"removed in optimagic version 0.6.0. Customization of the subplots can be done "
199+
"by modifying the returned figure."
200+
)
201+
warnings.warn(msg, FutureWarning)
202+
203+
195204
def replace_and_warn_about_deprecated_algo_options(algo_options):
196205
if not isinstance(algo_options, dict):
197206
return algo_options

0 commit comments

Comments
 (0)