import matplotlib.pyplot as plt
import numpy as np
figure, ax = plt.subplots()
plt.plot(np.arange(1, 11), np.arange(100, 110), label="A", linewidth=5.0)
font = {
'family': 'Times New Roman', 'weight': 'normal', 'size': 15}
legend = plt.legend(prop=font)
plt.tick_params(labelsize=20)
labels = a
Python作图设置图例、刻度的字体、大小以及中文标签
最新推荐文章于 2024-03-04 16:15:34 发布