AAhad commited on
Commit
7a04bbd
·
verified ·
1 Parent(s): e1f7633

added basic version

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import numpy as np
3
+ import plotly.figure_factory as ff
4
+
5
+ # Add histogram data
6
+ x1 = np.random.randn(200) - 2
7
+ x2 = np.random.randn(200)
8
+ x3 = np.random.randn(200) + 2
9
+
10
+ # Group data together
11
+ hist_data = [x1, x2, x3]
12
+
13
+ group_labels = ['Group 1', 'Group 2', 'Group 3']
14
+
15
+ # Create distplot with custom bin_size
16
+ fig = ff.create_distplot(
17
+ hist_data, group_labels, bin_size=[.1, .25, .5])
18
+
19
+ # Plot!
20
+ st.plotly_chart(fig, use_container_width=True)