前提・実現したいこと
タイトルの通り、matplotlib.imshow()で生成したfigをplotlyで表示しようとしています。
ですが、下記のようなuserwarningがでて、かつ表示される図が真っ白になってしまいます
発生している問題・エラーメッセージ
Aw. Snap! You're gonna have to hold off on the selfies for now. Plotly can't import images from matplotlib yet!
該当のソースコード
python
1import numpy as np 2import plotly 3from plotly.graph_objs import* 4import matplotlib.pyplot as plt 5 6A = np.random.rand(10,20) 7 8fig = plt.figure() 9plt.imshow(A) 10plotly.offline.plot_mpl(fig)
回答1件
あなたの回答
tips
プレビュー