Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

317
Views
How do you change the default font color for all text in matplotlib?

This only changed it for chart titles, but left axis titles the default color:

import matplotlib as mpl
mpl.rcParams['text.color'] = 'blue'
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You can set each text property separately, e.g.:

COLOR = 'blue'
mpl.rcParams['text.color'] = COLOR
mpl.rcParams['axes.labelcolor'] = COLOR
mpl.rcParams['xtick.color'] = COLOR
mpl.rcParams['ytick.color'] = COLOR

The full list of params is at https://matplotlib.org/users/customizing.html.

over 4 years ago · Santiago Trujillo Report

0

To set the label color in the rcParams as well use

text.color: blue
axes.labelcolor: blue

or, from within the script

mpl.rcParams.update({'text.color' : "blue",
                     'axes.labelcolor' : "blue"})
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!