这是一个很容易回答的问题,我敢肯定。我正在使用 bqplot(带有 pyplot),默认情况下,图例是带框的。所以我的问题是:如何移除框架?使用 matplotlib,我知道我可以简单地使用 plt.legend(frameon=False),你知道 bqplot 的直接等价物吗?
这段代码如下所示:
import bqplot.pyplot as pl
plot_test = pl.figure()
test = pl.plot(x,y, colors = ["white"],labels=['blabla'])
pl.legend()
pl.show()
先感谢您!