Multichem commited on
Commit
0f37bf7
·
verified ·
1 Parent(s): cea769f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -703,8 +703,21 @@ with tab3:
703
 
704
  if plot_count == "One":
705
  graph_data = working_data.reindex(['Date', plot_var1],axis="columns")
706
- fig, ax = plt.subplots()
707
- ax(graph_data)
 
 
 
 
 
 
 
 
 
 
 
 
 
708
  st.pyplot(fig)
709
  elif plot_count == "Two":
710
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")
 
703
 
704
  if plot_count == "One":
705
  graph_data = working_data.reindex(['Date', plot_var1],axis="columns")
706
+ fig, ax1 = plt.subplots()
707
+
708
+ color = 'tab:blue'
709
+ ax1.set_xlabel('Date')
710
+ ax1.set_ylabel(plot_var1, color = color)
711
+ ax1.plot(graph_data['Date'], graph_data[plot_var1], color = color)
712
+ ax1.tick_params(axis ='y', labelcolor = color)
713
+
714
+ # ax2 = ax1.twinx()
715
+
716
+ # color = 'tab:green'
717
+ # ax2.set_ylabel('sin', color = color)
718
+ # ax2.plot(t, data2, color = color)
719
+ # ax2.tick_params(axis ='y', labelcolor = color)
720
+
721
  st.pyplot(fig)
722
  elif plot_count == "Two":
723
  graph_data = working_data.reindex(['Date', plot_var1, plot_var2],axis="columns")