Skip to content

Instantly share code, notes, and snippets.

@ghtmtt
Last active Nov 25, 2019
Embed
What would you like to do?
from plotly import graph_objs as go
a = [go.Scatter({
#'customdata': [so4],
'hoverinfo': 'all',
'ids': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
'line': {'dash': 'solid', 'width': 1.0},
'marker': {'color': [203, 151, 350, 137, 319, 329, 267, 88, 98, 84, 100, 627, 306, 513, 267,
457, 683, 791, 788, 265, 296, 680, 536, 1122, 632, 1055, 1322, 1485,
1197, 602],
'colorbar': {'len': 0.8,
'tickmode': 'array',
'tickvals': [84.0, 266.13, 448.26, 630.39, 812.52,
994.65, 1176.78, 1344.9, 1485.0]},
'colorscale': [[0.0, '#deebf7'], [0.17, '#c6dbef'], [0.33,
'#9ecae1'], [0.5, '#6baed6'], [0.67, '#4292c6'],
[0.83, '#2171b5'], [1.0, '#08519c']],
'line': {'color': '#1f77b4', 'width': 1.0},
'reversescale': False,
'showscale': True,
'size': 10.0,
'symbol': 0},
'mode': 'markers',
'name': 'so4 - so4',
'opacity': 1.0,
'text': [],
'x': [203, 151, 350, 137, 319, 329, 267, 88, 98, 84, 100, 627, 306, 513, 267,
457, 683, 791, 788, 265, 296, 680, 536, 1122, 632, 1055, 1322, 1485,
1197, 602],
'y': [203, 151, 350, 137, 319, 329, 267, 88, 98, 84, 100, 627, 306, 513, 267,
457, 683, 791, 788, 265, 296, 680, 536, 1122, 632, 1055, 1322, 1485,
1197, 602]
})]
fig = go.Figure(data=a)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment