- 博客(2)
- 收藏
- 关注
原创 python skills
plot two Y axis fig, ax = plt.subplots(figsize=(12,6)) ax.plot(df['TradeVal'],color="blue") ax.set_ylabel("TradeVal",color="blue",fontsize=14) # twin object for two different y-axis on the sample plot ax2=ax.twinx() plt.plot( (df['midPrice'] /df['midPrice'
2021-01-14 10:03:03 67
原创 Julia simple tutorial
x,y = y,x g2 = x -> x^2 map(g2, [1,2,3,4]) (x->x^2) (2) # (2)是调用 g(x) = x^2 #simple fast defintion 函数小技巧 push!: 以!结尾的函数。!在函数名末尾,这是什么意思?更改或修改其输入的函数称为变异函数 逐点应用的功能,f.(x, y)和x .+ y(称为“广播”) 当我们添加一个.在函数名称之后,我们告诉Julia我们想要通过传递给函数的输入“ 广播 ”该函数。这意味着我们希望在输入上.
2020-12-31 14:20:39 173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人