About 5,630,000 results
Open links in new tab
  1. python - Get the list of figures in matplotlib - Stack Overflow

    Sep 24, 2010 · Pyplot has get_fignums method that returns a list of figure numbers. This should do what you want: plt.figure(i) plt.savefig('figure%d.png' % i) There is also now a plt.get_figlabels method that can be used in the same way, I used that to include the figure label in …

  2. python - Show only selected or specific matplotlib figures - Stack Overflow

    Jul 6, 2015 · If you are in interactive mode, you can show individual plots using the show method of the individual figures (e.g. fig2.show()), as long as you've made the figures using plt.figure, but in that case they would have been shown as they were created anyway.

  3. How do you get the current figure number in Python's matplotlib?

    Feb 19, 2017 · Use the get_label() method (docs) on the figure object. This returns empty string if the figure num is int or unset. I'm playing around with an example script that shows how to switch back and forth between figures. I found the example here: http://matplotlib.org/examples/pylab_examples/multiple_figs_demo.html ...

  4. Introduction to Figures — Matplotlib 3.10.1 documentation

    We will discuss how to create Figures in more detail below, but first it is helpful to understand how to view a Figure. This varies based on how you are using Matplotlib, and what Backend you are using. Screenshot of a Jupyter Notebook, with a figure generated via the default inline backend.

  5. Retrieving the List of Figures in Matplotlib in Python 3

    Retrieving the list of figures in Matplotlib is a straightforward task that can be accomplished using the get_fignums() function provided by the pyplot module. By understanding how to create figures in Matplotlib and manipulate them using the Figure object, we can easily retrieve and manage the list of figures in our Python programs.

  6. Matplotlib.figure.Figure.show() in Python - GeeksforGeeks

    May 3, 2020 · The show () method figure module of matplotlib library is used to display the figure window. Syntax: show (self, warn=True) Parameters: This method accept the following parameters that are discussed below: warn : This parameter contains the boolean value. Returns: This method does not returns any value.

  7. Creating, viewing, and saving Matplotlib Figures

    We will discuss how to create Figures in more detail below, but first it is helpful to understand how to view a Figure. This varies based on how you are using Matplotlib, and what Backend you are using. Screenshot of a Jupyter Notebook, with a figure generated via the default inline backend.

  8. Pyplot tutorial — Matplotlib 3.10.1 documentation

    matplotlib.pyplot is a collection of functions that make matplotlib work like MATLAB. Each pyplot function makes some change to a figure: e.g., creates a figure, creates a plotting area in a figure, plots some lines in a plotting area, decorates the plot with labels, etc.

  9. Get the List of Figures in Matplotlib - Online Tutorials Library

    Apr 9, 2021 · To get the list of figures in matplotlib, we can take the following steps −. Using figure() method, create a new figure, or activate an existing figure. Creating x figures, i.e., x=3. To get the list of figures, use the plt.get_fignums() method. Example

  10. How to Display Figures, Lines, and Arrows with Matplotlib

    Lines can be created using the plot([x1,x2],[y1,y2]) method you already know. The known properties can be used to change the line styles and widths. Based on the transmission with three gears example, the listing below demonstrates how circles and lines can be displayed using the Circle() and plot() methods.

  11. Some results have been removed
Refresh