This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am fabricemesidor on github. | |
* I am fabricemesidor (https://keybase.io/fabricemesidor) on keybase. | |
* I have a public key ASCQ0ioWb1fV9k7zlTI35JwkIAjZO05MTxCHLGirelWzXAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plotly | |
from plotly.offline import iplot, init_notebook_mode | |
init_notebook_mode(connected=True) | |
def trace(data, mode = 'markers', name="data"): | |
x_values = list(map(lambda point: point['x'],data)) | |
y_values = list(map(lambda point: point['y'],data)) | |
return {'x': x_values, 'y': y_values, 'mode': mode, 'name': name} | |
def trace_values(x_values, y_values, mode = 'markers', name="data", text_values = []): |