Matplotlib:仅图例中的文本

时间:2018-11-09 14:47:35

标签: python matplotlib

这是我的代码

import matplotlib.pyplot as plt
import numpy as np

x = np.random.rand(1000)

plt.hist(x, label="bla")
plt.legend(frameon=True)
plt.show()

产生

enter image description here

如何删除图例中的“蓝色”框?我只需要“ bla”。

0 个答案:

没有答案
相关问题