我正在使用回归算法预测股价。所有代码都在下面。一切正常。我只是想弄清楚如何放大蓝色的预测值。理想情况下,我想使它成为动态过程,而不是硬编码过程。 TIA!
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-XXXXXXX-1', 'auto');
ga('set', 'dimension1', 'Manager');
ga('set', 'dimension2', 'Recruitment');
ga('set', 'dimension3', 'Leave');
ga('send', 'pageview');
</script>
答案 0 :(得分:1)
根据我的评论,Bokeh非常适合进行交互式绘图,但是如果您只想更改轴设置,则:
# Modified 5th to last line of your code:
ax = df['Forecast'].plot()
# Example with made up date range.
ax.set_xlim(pd.Timestamp('2018-01-01'), pd.Timestamp('2018-04-01'))