plotly可视化绘制多子图(subplots)
Posted Data+Science+Insight
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了plotly可视化绘制多子图(subplots)相关的知识,希望对你有一定的参考价值。
plotly可视化绘制多子图(subplots)
# 多子图;
from plotly import tools
import plotly as py
import plotly.graph_objs as go
pyplt = py.offline.plot
trace1 = go.Scatter(x=[1, 2, 3],
y=[4, 5, 6],
mode=\'markers+text+lines\',
text=[\'A\', \'B\', \'C\'],
# textposition=\'bottom\'
)
trace2 = go.Scatter(x=[20, 30, 40],y=[50, 60, 70])
trace3 = go.Scatter(x=[300, 400, 500],
y=[600, 700, 800],
mode=\'markers+text+lines\',
text=[\'D\', \'E\', \'F\'],
# textposition=\'bottom\'
)
trace4 = go.Scatter(x=[4000, 5000, 6000], y=[7000, 8000, 9000])
fig = tools.make_subplots(rows=2, cols=2, subplot_tit
以上是关于plotly可视化绘制多子图(subplots)的主要内容,如果未能解决你的问题,请参考以下文章
plotly可视化绘制多子图(subplots)并自定义坐标轴
Python可视化matplotlib多子图可视化(Multiple Subplots):plt.axes()plt.subplot()plt.subplots()