Skip to content

Instantly share code, notes, and snippets.

@karanjagota
Created June 10, 2019 16:41
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 karanjagota/e9c00352ba56b8a3771e0428f97e5de6 to your computer and use it in GitHub Desktop.
Save karanjagota/e9c00352ba56b8a3771e0428f97e5de6 to your computer and use it in GitHub Desktop.
gist for my medium blogs
np.random.seed(63)
random_y1 = np.random.randint(1,100,20)
random_y2 = np.random.randint(1,200,20)
trace1 = go.Box(y=random_y1,name='Boxplot1')
trace2 = go.Box(y=random_y2,name='Boxplot2')
data = [trace1,trace2]
layout = go.Layout(title='Boxplots-Example',
width=500,
height=600)
fig = go.Figure(data=data,layout=layout)
pyo.plot(fig,filename='boxplot.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment