close

How to set the label Fonts as “Time New Roman” by drawparallels in python

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to set the label Fonts as “Time New Roman” by drawparallels in python in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to set the label Fonts as “Time New Roman” by drawparallels in python?

  1. How to set the label Fonts as “Time New Roman” by drawparallels in python?

    You need to set font family using pyplot of matplotlib.
    import matplotlib.pyplot as plt csfont = {'fontname':'Times New Roman'}

  2. set the label Fonts as “Time New Roman” by drawparallels in python

    You need to set font family using pyplot of matplotlib.
    import matplotlib.pyplot as plt csfont = {'fontname':'Times New Roman'}

Method 1

You need to set font family using pyplot of matplotlib.

import matplotlib.pyplot as plt
csfont = {'fontname':'Times New Roman'}
// write your code related to basemap here
plt.title('title',**csfont)
plt.show()

You can also use the following to change font globally.

import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Times New Roman"

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read