专栏名称: 程序员大咖
为程序员提供最优质的博文、最精彩的讨论、最实用的开发资源;提供最新最全的编程学习资料:PHP、Objective-C、Java、Swift、C/C++函数库、.NET Framework类库、J2SE API等等。并不定期奉送各种福利。
目录
相关文章推荐
蚂蚁技术AntTech  ·  报名开启 | ... ·  1小时前  
大淘宝技术  ·  大模型微调知识与实践分享 ·  4 小时前  
伯乐在线  ·  HR ... ·  9 小时前  
伯乐在线  ·  HR ... ·  9 小时前  
码农翻身  ·  投诉领导被光速开除,和烂人说再见啦~ ·  昨天  
51好读  ›  专栏  ›  程序员大咖

Jupyter 常见可视化框架的选择

程序员大咖  · 公众号  · 程序员  · 2017-11-23 10:24

正文

请到「今天看啥」查看全文


= [ 28.8 , 28.5 , 37.0 , 56.8 , 69.7 , 79.7 , 78.5 , 77.8 , 74.1 , 62.6 , 45.3 , 39.9 ]

low_2014 = [ 12.7 , 14.3 , 18.6 , 35.5 , 49.9 , 58.0 , 60.0 , 58.6 , 51.7 , 45.2 , 32.2 , 29.1 ]

# Create and style traces

trace0 = go . Scatter (

x = month ,

y = high_2014 ,

name = 'High 2014' ,

line = dict (

color = ( 'rgb(205, 12, 24)' ),

width = 4 )

)

trace1 = go . Scatter (

x = month ,

y = low_2014 ,

name = 'Low 2014' ,

line = dict (

color = ( 'rgb(22, 96, 167)' ),

width = 4 ,)

)

trace2 = go . Scatter (

x = month ,

y = high_2007 ,

name = 'High 2007' ,

line = dict (

color = ( 'rgb(205, 12, 24)' ),

width = 4 ,

dash = 'dash' ) # dash options include 'dash', 'dot', and 'dashdot'

)

trace3 = go . Scatter (

x = month ,

y = low_2007 ,

name = 'Low 2007' ,

line = dict (

color = ( 'rgb(22, 96, 167)' ),

width = 4 ,

dash = 'dash' )

)

trace4 = go . Scatter (

x = month ,

y = high_2000 ,

name = 'High 2000' ,

line = dict (

color = ( 'rgb(205, 12, 24)' ),

width = 4 ,

dash = 'dot' )

)

trace5 = go . Scatter (

x = month ,

y = low_2000 ,

name = 'Low 2000' ,

line = dict (

color = ( 'rgb(22, 96, 167)' ),

width = 4 ,

dash = 'dot' )

)

data = [ trace0 , trace1 , trace2 , trace3 , trace4 , trace5 ]

# Edit the layout

layout = dict ( title = 'Average High and Low Temperatures in New York' ,

xaxis = dict ( title = 'Month' ),

yaxis = dict ( title = 'Temperature (degrees F)' ),

)

fig = dict ( data = data , layout = layout )

py .







请到「今天看啥」查看全文