Eu desenhei um mapa com latitudes rotuladas, mas quero definir as fontes como "Times New Roman". Como tornar isso possível?
m.drawparallels (parallels, labels = [1,0,0,0], fontsize = 12)
Respostas:
5 para resposta № 1Você precisa definir a família de fontes usando pyplot
do matplotlib
.
import matplotlib.pyplot as plt
csfont = {"fontname":"Times New Roman"}
// write your code related to basemap here
plt.title("title",**csfont)
plt.show()
Você também pode usar o seguinte para alterar a fonte globalmente.
import matplotlib.pyplot as plt
plt.rcParams["font.family"] = "Times New Roman"