【发布时间】:2019-02-02 11:56:56
【问题描述】:
geo1 = go.Scatter(
x=geo['Year'],
y=geo['Number'],
mode='lines',
marker=dict(color=geo['Geographical region'],size=4, showscale=False),
name='geo',
showlegend=True)
data = [geo1]
layout = dict(
title='Working VISA in UK by Regions',
xaxis=dict(title='Year'),
yaxis=dict(title='Number'), showlegend=True)
fig = dict(data=data, layout=layout)
iplot(fig)
我想要的是在 seaborn 中使用与“hue”类似的功能:
如何按不同颜色的区域进行绘图编码?
【问题讨论】:
标签: python time-series plotly