- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Show Matplotlib graphs to image as fullscreen
To show matplotlib graphs as full screen, we can use full_screen_toggle() method.
Steps
Create a figure or activate an existing figure using figure() method.
Plot a line using two lists.
Return the figure manager of the current figure.
To toggle full screen image, use full_screen_toggle() method.
To display the figure, use show() method.
Example
from matplotlib import pyplot as plt plt.rcParams["figure.figsize"] = [7.00, 3.50] plt.rcParams["figure.autolayout"] = True plt.figure() plt.plot([1, 2], [1, 2]) manager = plt.get_current_fig_manager() manager.full_screen_toggle() plt.show()
Output
- Related Articles
- How to show node name in Matplotlib graphs using networkx?
- Show a grayscale Open CV image with Matplotlib
- Matplotlib figure to image as a numpy array
- Adding textures to graphs using Matplotlib
- How to plot multiple graphs in Matplotlib?
- Displaying bar graphs using Matplotlib
- How to plot 3D graphs using Python Matplotlib?
- How to show an image in Matplotlib in different colors with different channels?
- Displaying horizontal bar graphs using Matplotlib
- How to make multipartite graphs using networkx and Matplotlib?
- How to create broken horizontal bar graphs in matplotlib?
- How to force Matplotlib to show the values on X-axis as integers?
- How to show numpy 2D array as grayscale image in Jupyter Notebook?
- Matplotlib – Drawing lattices and graphs with Networkx
- How to save an array as a grayscale image with Matplotlib/Numpy?

Advertisements