Gráficos#

The Plots pane shows the static figures and images created during your session. It will show you plots from the Terminal de IPython, produced by your code in the Editor or generated by the Explorador de variables, and allows you to interact with them in several ways.

Spyder main window showing execution for the Plots pane

Las figuras que se muestran en el panel de Gráficos son las asociadas con la pestaña activa Terminal. Si cambias de terminal, la lista de gráficos mostrados cambiará en consecuencia o no mostrará ninguno si abres una terminal nueva.

Spyder's plots pane and console showing switching consoles

Opciones de la barra de herramientas#

The toolbar at the top of the 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.

Spyder main window showing plot navigation using arrows.

The -, + and Fit plot to pane size buttons and the associated percentage field allows you to control zoom level.

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 Save plot as and 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 Preferences ‣ IPython Console ‣ Plotting ‣ Inline backend ‣ Format.

Spyder plots pane showing saving a plot.

Additionally, if you want to use a figure in another document, you can click the Copy plot to clipboard as image button and paste your plot wherever you want, such as a word processor.

Spyder Plots pane showing pasting plot in LibreOffice.

Finally, you can use the Remove plot and Remove all plots buttons in the toolbar to clear figures from the list.

Spyder plots pane showing removing a plot.

Menú de opciones#

The options («hamburger») menu in the top right of the Plots pane offers several ways to customize how your figures are displayed.

Silenciar los gráficos en línea#

The Mute inline plotting option is enabled by default, preventing your plots from also appearing in the IPython Console. If you deactivate this option, figures will display in both the Plots pane and the console.

Spyder's plots pane and console showing plots in the console

Mostrar el borde del gráfico#

La opción Mostrar el borde del gráfico, desactivada por defecto, muestra un trazo delgado alrededor del área de la figura, que también aparecerá en las imágenes exportadas.

Spyder's plots pane showing a plot's outline

Maximum number of plots#

The Set maximum number of plots option, set to 100 by default, controls how many recent plots will be accessible via the 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.