在注意到目前这个问题没有答案后,我想知道是否有人知道如何:
这是我的 Plotly 脚本:
from plotly import tools
import plotly.plotly as py
import plotly.graph_objs as go
import plotly
nom_plot=[]
trace1 = go.Scatter(x=[1, 2, 3], y=[4, 5, 6],name='1',showlegend=True)
nom_plot.append('GRAPH 1')
trace2 = go.Scatter(x=[20, 30, 40], y=[50, 60, 70],name='2',yaxis='y2')
nom_plot.append('GRAPH 2')
trace3 = go.Scatter(x=[300, 400, 500], y=[600, 700, 800],showlegend=False)
nom_plot.append('GRAPH 3')
trace4 = go.Scatter(x=[4000, 5000, 6000], y=[7000, 8000, 9000])
nom_plot.append('GRAPH 4')
trace5 = go.Scatter(x=[20, 30, 40], y=[50, 60, 70])
nom_plot.append('GRAPH 5')
print(trace1)
fig = tools.make_subplots(rows=4, cols=2, subplot_titles=(nom_plot))
fig.append_trace(trace1, 1, 1) …Run Code Online (Sandbox Code Playgroud) 我想在 python 2.7 上使用 Pygal 创建一个仪表板(同一窗口中的几个图),但后者没有 subplot 功能,是否有解决方案,不使用散景或绘图?
Matplotlib 上的示例:
fig, axes = plt.subplots(ncols=4, nrows=5, figsize=(35,20))
for ax in axes.flatten():
ax.plot([2,3,5,1])
plt.show()
Run Code Online (Sandbox Code Playgroud)
Pygal 上有类似的东西吗?
我想知道是否有一种方法可以在matplotlib上放置滚动条(水平或垂直),显示plt.show包含多个子槽(sublot2grid)的page ().目前,我找到的唯一解决方案是使子图非常小,这根本不是很优雅.
python ×3
anaconda ×2
matplotlib ×2
python-2.7 ×2
continuum ×1
plotly ×1
plotly-dash ×1
pygal ×1