diff --git a/book/features/figures/toolbar.png b/book/features/figures/toolbar.png new file mode 100644 index 0000000..1960d9c Binary files /dev/null and b/book/features/figures/toolbar.png differ diff --git a/book/features/widgets.ipynb b/book/features/widgets.ipynb index 2d441bb..cf1f593 100644 --- a/book/features/widgets.ipynb +++ b/book/features/widgets.ipynb @@ -40,7 +40,24 @@ "```python\n", "input_slider = widgets.FloatSlider(value=0, min=0, max=10, step=1, description='Input variable:') # Defines a widget, more options than just FloatSlider\n", "widgets.interact(update_plot, input_variable_from_widget = input_slider);\n", - "```\n" + "```\n", + "\n", + "Finally, When using `%matplotlib widget`, there's the following toolbar:\n", + "\n", + "![](./figures/toolbar.png)\n", + "\n", + "Which only shows up when you hoover above. If you want to disable the toolbar you can use:\n", + "```python\n", + "fig = plt.gcf()\n", + "fig.canvas.toolbar_visible = False\n", + "```\n", + "\n", + "If you want it to be visible even if you don't hoover above it, use:\n", + "\n", + "```python\n", + "fig = plt.gcf()\n", + "fig.canvas.toolbar_visible = True\n", + "```" ] }, {