trace = go.
Scatter (
x = [ 1, 2, 3 ] , y = [ 1, 2, 3 ] ,
marker = dict (
color = [ ‘red’, ‘blue’ ,
‘green’ ]
size = [ 30, 80, 200 ] ) ,
mode = ‘markers’ )
py.iplot ( [ trace ] )
In the terminal:
plot_url = py.plot ( fig )
Or in the IPython notebook:
py.iplot ( fig )
trace = dict (
type = ‘scattergeo’ ,
lon = [ 100, 400 ] , lat = [ 0, 0] ,
marker = dict (
marker = [ ‘red’, ‘blue’ ]
size = [ 30, 50 ] ) ,
mode = ‘markers’ )
py.iplot ( [ trace ] )