linx5o commited on
Commit
920b951
1 Parent(s): 21c5cdd
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -690,7 +690,13 @@ def get_data_default(time_scale, exp):
690
  df = pd.DataFrame(temp_graph)
691
  df = df.set_index("x")
692
 
693
- fig = go.Figure(data=go.Scatter(x=df.index, y=df["temperature"], mode="lines"))
 
 
 
 
 
 
694
  else:
695
  fig = None
696
 
@@ -736,7 +742,7 @@ def get_data_default(time_scale, exp):
736
  else:
737
  fig3 = None
738
 
739
- return fig, fig1, fig2, fig3
740
 
741
 
742
  # Define the interface components
 
690
  df = pd.DataFrame(temp_graph)
691
  df = df.set_index("x")
692
 
693
+ plt.figure()
694
+ plt.plot(df.index, df["temperature"])
695
+ plt.xlabel("Time")
696
+ plt.ylabel("Temperature")
697
+ plt.title("Temperature vs Time")
698
+ plot1 = plt.gcf()
699
+ plt.close()
700
  else:
701
  fig = None
702
 
 
742
  else:
743
  fig3 = None
744
 
745
+ return plot1, fig1, fig2, fig3
746
 
747
 
748
  # Define the interface components