linx5o commited on
Commit
c560aa3
1 Parent(s): 90ec89e

np arrary?

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -684,11 +684,10 @@ def get_data_default(time_scale, exp):
684
  utc_time = utc_time.replace(tzinfo=pytz.utc)
685
  local_time = utc_time.astimezone(local_tz)
686
  temp["x"] = local_time.strftime("%Y-%m-%d %H:%M:%S")
687
- df = pd.DataFrame(temp_graph)
688
- df = df.set_index("x")
689
 
690
  plt.figure()
691
- plt.plot(df.index, df["y"])
692
  plt.xlabel("Time")
693
  plt.ylabel("Temperature (C)")
694
  plt.title("Temperature vs Time")
@@ -749,9 +748,7 @@ def get_data_default(time_scale, exp):
749
  gr["x"] = local_time.strftime("%Y-%m-%d %H:%M:%S")
750
  df = pd.DataFrame(growth_rate_graph)
751
  df = df.set_index("x")
752
-
753
- print (df)
754
-
755
  plt.figure()
756
  plt.plot(df.index, df["y"])
757
  plt.xlabel("Time")
 
684
  utc_time = utc_time.replace(tzinfo=pytz.utc)
685
  local_time = utc_time.astimezone(local_tz)
686
  temp["x"] = local_time.strftime("%Y-%m-%d %H:%M:%S")
687
+ npArray = np.array(temp_graph)
 
688
 
689
  plt.figure()
690
+ plt.plot(npArray[:,0], npArray[:,1])
691
  plt.xlabel("Time")
692
  plt.ylabel("Temperature (C)")
693
  plt.title("Temperature vs Time")
 
748
  gr["x"] = local_time.strftime("%Y-%m-%d %H:%M:%S")
749
  df = pd.DataFrame(growth_rate_graph)
750
  df = df.set_index("x")
751
+
 
 
752
  plt.figure()
753
  plt.plot(df.index, df["y"])
754
  plt.xlabel("Time")