インストールしたい
$ pip3 install plotly
$ poetry add plotly
1import plotly.express as px
2fig = px.bar(x=["a", "b", "c", y=[1, 3, 2])
3fig.write_html("first_figure.html", auto_open=True)
グラフを作成する場合は、plotly.express
を使います。
もっと複雑なことをしたい場合はplotly
が必要です。
$ pip3 install plotly
$ poetry add plotly
1import plotly.express as px
2fig = px.bar(x=["a", "b", "c", y=[1, 3, 2])
3fig.write_html("first_figure.html", auto_open=True)
グラフを作成する場合は、plotly.express
を使います。
もっと複雑なことをしたい場合はplotly
が必要です。