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,890 points
212 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,230 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 aryya
• 7,350 points
149 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,230 points
156 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, 2019 in Python by Giri
1,135 views
0 votes
1 answer

How to get size of a list?

Hi, You can use built-in function "len" to ...READ MORE

answered Jun 20, 2019 in Python by Shabnam
• 920 points
45 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
• 57,530 points
185 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
• 57,530 points
5,467 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,230 points
129 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,230 points
749 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,230 points
74 views