如果想获取标签文本,可使用 Axes.get_xlabel 方法获取。 import matplotlib.pyplot as plt plt.plot([1, 1]) a = plt.xlabel("x") print(a) ...
確定! 回上一頁