matplotlibプロットをbokeh htmlプロットに変換すると、matplotlibプロットの凡例がbokeh htmlプロットに表示されません。以下は例です。伝説をボケに現われるにはどうすればいいですか?ありがとう。Bokehのto_bokeh()はmatplotlibの凡例を無視します
import matplotlib.pyplot as plt
from bokeh.plotting import figure, show, output_file, save
from bokeh.mpl import to_bokeh
if __name__ == '__main__':
legend = ['x^2', '2x']
fig = plt.figure()
ax = fig.add_subplot(111)
plt.plot(range(10), [x*x for x in range(10)], '-o')
plt.plot(range(10), [2*x for x in range(10)], '-o')
plt.legend(legend, loc='upper left')
plt.show()
bk = to_bokeh(fig)
show(bk
)