.. _panes-plots: ##### Plots ##### The **Plots** pane shows the static figures and images created during your session. It will show you plots from the :ref:`panes-console`, produced by your code in the :ref:`panes-editor` or generated by the :ref:`panes-variables`, and allows you to interact with them in several ways. .. image:: /images/plots/plots-execution.gif :alt: Spyder main window showing execution for the Plots pane The figures shown in the Plots pane are those associated with the currently active :guilabel:`Console` tab; if you switch consoles, the list of plots displayed (or none at all, if a new console) will change accordingly. .. image:: /images/plots/plots-switch.gif :alt: Spyder's plots pane and console showing switching consoles .. _panes-plots-toolbar: =============== Toolbar options =============== The toolbar at the top of the :guilabel:`Plots` pane provides a number of useful features that allow you to interact with your figures. For example, you can cycle sequentially through the plot list with the forward and back arrows. .. image:: /images/plots/plots-arrows.gif :alt: Spyder main window showing plot navigation using arrows. .. _panes-plots-options-fit: The :guilabel:`-`, :guilabel:`+` and :guilabel:`Fit plot to pane size` buttons and the associated percentage field allows you to control zoom level. .. image:: /images/plots/plots-zoom.gif :alt: Spyder main window showing plots zoom You can save one or all the plots in the pane to image file(s) by clicking the respective :guilabel:`Save plot as` and :guilabel:`Save all plots` buttons in the toolbar. Plots are rendered and saved as PNG (raster) by default, but SVG (vector) can be selected as an option under :menuselection:`Preferences --> IPython Console --> Plotting --> Inline backend --> Format`. .. image:: /images/plots/plots-save.gif :alt: Spyder plots pane showing saving a plot. Additionally, if you want to use a figure in another document, you can click the :guilabel:`Copy plot to clipboard as image` button and paste your plot wherever you want, such as a word processor. .. image:: /images/plots/plots-copy.gif :alt: Spyder Plots pane showing pasting plot in LibreOffice. Finally, you can use the :guilabel:`Remove plot` and :guilabel:`Remove all plots` buttons in the toolbar to clear figures from the list. .. image:: /images/plots/plots-remove.gif :alt: Spyder plots pane showing removing a plot. .. _panes-plots-options: ============ Options menu ============ The options ("hamburger") menu in the top right of the :guilabel:`Plots` pane offers several ways to customize how your figures are displayed. .. _panes-plots-options-inline: Mute inline plotting ~~~~~~~~~~~~~~~~~~~~ The :guilabel:`Mute inline plotting` option is enabled by default, preventing your plots from also appearing in the :guilabel:`IPython Console`. If you deactivate this option, figures will display in both the :guilabel:`Plots` pane and the console. .. image:: /images/plots/plots-inline-plotting.gif :alt: Spyder's plots pane and console showing plots in the console .. _panes-plots-options-outline: Show plot outline ~~~~~~~~~~~~~~~~~ The :guilabel:`Show plot outline` option, off by default, shows a thin stroke surrounding the area of the figure area, which will also appear in the exported images. .. image:: /images/plots/plots-outline.gif :alt: Spyder's plots pane showing a plot's outline .. _panes-plots-options-max: Maximum number of plots ~~~~~~~~~~~~~~~~~~~~~~~ The :guilabel:`Set maximum number of plots` option, set to ``100`` by default, controls how many recent plots will be accessible via the :guilabel:`Plots` pane. A higher number means you can browse more recent plots, but will use more memory and potentially slow Spyder down substantially if you generate a very high number of plots at once. .. _panes-plots-related: ============= Related panes ============= * :ref:`panes-console` * :ref:`panes-variables`