Skip to content

Instantly share code, notes, and snippets.

View FabriceMesidor's full-sized avatar
🏠
Working from home

Fabrice Mesidor FabriceMesidor

🏠
Working from home
View GitHub Profile
### 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:
@FabriceMesidor
FabriceMesidor / Saved_Codes1
Last active May 7, 2019 03:16
Codes for graphs
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 = []):