How to increase plt title font size

0 votes
I'm working with Python matplotlib and this is the code:

  plt.title('Temperature \n Humidity')
 

How can I just increase the font size of temperature instead of both the temperature & the humdity?

I tried the following but it is not working :

 plt.title('Temperature \n Humidity', fontsize=100)

Any solution?
Feb 11, 2019 in Python by ana1504.k
• 7,910 points
895 views

1 answer to this question.

0 votes
Try the following :

import matplotlib.pyplot as plt
plt.figtext(.5,.9,'Temperature', fontsize=100, ha='center')
plt.figtext(.5,.8,'Humidity',fontsize=30,ha='center')
plt.show()
answered Feb 11, 2019 by SDeb
• 13,300 points

Related Questions In Python

0 votes
2 answers

How to change the font size on a matplotlib plot?

Functions dealing with text like label, title, etc. accept ...READ MORE

answered Jan 4, 2021 in Python by Carlos
3,790 views
0 votes
2 answers
0 votes
1 answer

How to get the size of a string in Python?

If you are talking about the length ...READ MORE

answered Jun 4, 2018 in Python by aryya
• 7,450 points
1,081 views
–1 vote
2 answers

How to find the size of a string in Python?

following way to find length of string  x ...READ MORE

answered Mar 29, 2019 in Python by rajesh
• 1,270 points
1,596 views
+1 vote
1 answer

How to create plots using python matplotlib in IPython notebook?

I think you should try: I used %matplotlib inline in ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 58,090 points
1,213 views
+1 vote
1 answer

How to handle Real-Time Matplotlib Plotting

To draw a continuous set of random ...READ MORE

answered Sep 26, 2018 in Python by Priyaj
• 58,090 points
15,768 views
0 votes
1 answer

pyplot tab character

I see that pylab.show actually shows some ...READ MORE

answered Mar 19, 2019 in Python by SDeb
• 13,300 points
2,569 views
0 votes
1 answer

How to convert string into epoch time?

you are passing the parsed datetime object to ...READ MORE

answered Sep 22, 2018 in Python by SDeb
• 13,300 points
6,210 views
0 votes
1 answer

How to check the version of Python?

you can check the version of python ...READ MORE

answered Sep 25, 2018 in Python by SDeb
• 13,300 points
618 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP