- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do you get the current figure number in Python's Matplotlib?
To get the current figure number in Python's Matplotlib, we can use plt.gcf().number.
- Using figure(count) method, we can create a number of figures with count or windows name.
- To get the count of figures, use plt.gcf().number.
from matplotlib import pyplot as plt fig = plt.figure(3) print("Number of figures: ", plt.gcf().number)
Number of figures: 3
- How to set the current figure in Matplotlib?
- How can I get the color of the last figure in Matplotlib?
- How do you calculate Net Current Assets Turnover?
- How do I extend the margin at the bottom of a figure in Matplotlib?
- How do you improve Matplotlib image quality?
- How do you get the file size in C#?
- Change figure size and figure format in Matplotlib
- How do you round up a float number in Python?
- How do I get current URL in Selenium Webdriver 2 Python?
- How do you know when it's time to move on from your current company?
- How do you get the purest form of Cocaine?
- How do I redraw an image using Python's Matplotlib?
- How do you get the font metrics in Java Swing?
- How do I show the same Matplotlib figure several times in a single IPython notebook?