Is there a way to normalize the scales of axes in subplots in cufflinks library python?

拜拜、爱过 提交于 2020-04-30 08:46:45

问题


I have used cufflinks to plot a few subplots, their scale ranges are different. I want same scales so I can compare the subplots. Is there a way to customize the axes of each subplot in cufflinks?

screenshot

This link shows the picture of the subplots, the subplots of row 1, column1 and column2 have different ranges on the y axes. Is there a way to change the range of graph DRV.FV to -5 to 10?

MCVE:

df=cf.datagen.lines(4)
df.iplot(subplots=True, subplot_titles=True, legend=False)

I have taken this from the official plotly website.

Don't be alarmed if you run this and get a different sub plot because every time the data generated is random. So the plot will be different. The question here is just how to obtain same scale ranges on the sub plots.

来源:https://stackoverflow.com/questions/60700125/is-there-a-way-to-normalize-the-scales-of-axes-in-subplots-in-cufflinks-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!