- 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
Automatic detection of display availability with Matplotlib
To detect display availability with matplotlib, we can take the following steps −
Stps
Import os module.
Use os.environ["DISPLAY"] to get the available display.
Example
import os env = os.environ["DISPLAY"] print("Automatic detected display availability: ", env)
Output
Automatic detected display availability: 0
- Related Articles
- How can I display an np.array with pylab.imshow() using Matplotlib?
- Line detection in python with OpenCV?
- What is CSMA with collision detection?
- How to display print statements interlaced with Matplotlib plots inline in iPython?
- Setting the display range suplot of errorbars in matplotlib
- How to display a sequence of images using Matplotlib?
- CSMA with Collision Detection (CSMA/CD)\n
- How do the areas covered with concrete affect the availability of groundwater?
- Best way to display Seaborn/Matplotlib plots with a dark iPython Notebook profile
- Automatic Repeat reQuest (ARQ)
- Automatic Performance Tuning of CentOS/RHEL Servers
- Detection on clicking bezier path shape with HTML5
- How Does Ingress Filtering Help with Cyberattack Detection?
- Detection of a specific color(blue here) using OpenCV with Python?
- Automatic Power Save Delivery (APSD)

Advertisements