質問編集履歴

1

補足を追加

2024/04/23 15:34

投稿

beluga00nm
beluga00nm

スコア12

test CHANGED
File without changes
test CHANGED
@@ -22,14 +22,14 @@
22
22
  plt.rcParams["font.size"] = 18
23
23
 
24
24
  for j, year, ID in zip(places, year_list, ID_list):
25
- df2 = load_and_format(year,birdID) #データをロードする部分
25
+ df2 = load_and_format(year,ID) #データをロードする部分
26
26
 
27
27
  graph_left_h = int(str(df2.index[0])[11:13]) #データのinndexのはじめの値から"時"を抜き出す
28
28
  graph_left_m = int(str(df2.index[0])[14:16]) #データのinndexのはじめの値から"分"を抜き出す
29
29
  left = ((graph_left_h-6.5)+(graph_left_m/60))/12 #グラフの左端の場所を決める
30
30
 
31
31
  ax = fig.add_axes([left,1 - j*0.13,len(df2)/3600/12,0.08])
32
- ax.scatter(df2.index, df2["feces"]*0.5, color = "red", s = 30)
32
+ ax.scatter(df2.index, df2["data1"]*0.5, color = "red", s = 30)
33
33
 
34
34
  ax.set_ylim(0,1)
35
35
  ax.xaxis.set_major_formatter(mdates.DateFormatter('%H:%M'))
@@ -59,4 +59,4 @@
59
59
  時刻だけshareする方法はないでしょうか。すべてのデータの年月日を書き換えてから軸をシェアするのが最善でしょうか?
60
60
 
61
61
  ### 補足
62
- 特になし
62
+ Jupyter notebookを使っています。