Skip to content

Instantly share code, notes, and snippets.

@ghtmtt
Created November 25, 2019 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghtmtt/a43345ad5fc52bb83454b43d637b34f5 to your computer and use it in GitHub Desktop.
Save ghtmtt/a43345ad5fc52bb83454b43d637b34f5 to your computer and use it in GitHub Desktop.
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': ['#e7f1fa', '#eef6fd', '#d3e4f4',' #f0f7fd', '#d7e7f5', '#d6e6f5',
'#deebf7', '#f7fbff', '#f6faff', '#f7fbff', '#f5faff', '#9fcbe2',
'#d9e8f6', '#b8d5ea', '#deebf7', '#c4dbef', '#8fc2de', '#71b2d8',
'#72b2d8', '#dfecf8', '#dae9f6', '#90c3de', '#b3d3e9', '#2b7bba',
'#9ecae1', '#3787c1', '#0b55a0', '#08306b', '#1e6db2', '#a4cde4'],
'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