- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
How to get a list of all the fonts currently available for Matplotlib?
To get a list of all the fonts currently available for matplotlib, we can use the font_manager.findSystemFonts() method.
Steps
Print a statement.
Use font_manager.findSystemFonts() method to get a list of fonts availabe.
Example
from matplotlib import font_manager print("List of all fonts currently available in the matplotlib:
") print(*font_manager.findSystemFonts(fontpaths=None, fontext='ttf'), sep="
")
Output
/usr/share/fonts/truetype/Nakula/nakula.ttf /usr/share/fonts/truetype/ubuntu/Ubuntu-L.ttf /usr/share/fonts/truetype/tlwg/Loma-BoldOblique.ttf ................................................................. ............................................................................ ................................................................................. ........ /usr/share/fonts/truetype/lohit-malayalam/Lohit-Malayalam.ttf /usr/share/fonts/truetype/tlwg/TlwgTypist-Oblique.ttf /usr/share/fonts/truetype/liberation2/LiberationMono-Bold.ttf
- Related Articles
- How to get the list of font family (or Name of Fonts) in Matplotlib?
- How to get the list of all the commands available in the PowerShell?
- How to view all colormaps available in Matplotlib?
- How to get all properties and methods available for the service in PowerShell?
- How to change fonts in matplotlib (python)?
- How to get the list of available data frames in R environment?
- How to list down all the files available in a directory using C#?
- How to list all users who are currently logged into the Linux system?\n
- How to embed fonts in PDFs produced by Matplotlib
- How to list down all the available commands and aliases on Linux?
- How to get all the legends from a plot in Matplotlib?
- How can I get the list of columns from a table in the database we are currently using?
- How to get the list of all databases using JDBC?
- How to get a list of all the keys from a Python dictionary?
- How to get a list of all the values from a Python dictionary?

Advertisements