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 in Python by ana1504.k
• 7,870 points
115 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 by SDeb
• 13,180 points

Related Questions In Python

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 ariaholic
• 7,340 points
104 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 in Python by rajesh
• 1,210 points
100 views
0 votes
1 answer

How to set window size in Tkinter Python?

The window size adjustment can be done ...READ MORE

answered May 8 in Python by Giri
337 views
0 votes
1 answer
+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
• 56,900 points
143 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
• 56,900 points
3,243 views
0 votes
1 answer

pyplot tab character

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

answered Mar 19 in Python by SDeb
• 13,180 points
60 views
0 votes
1 answer

How to convert string into epoch time?

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

answered Sep 21, 2018 in Python by SDeb
• 13,180 points
246 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,180 points
60 views