ryo2 commited on
Commit
cede2ca
·
verified ·
1 Parent(s): dc16bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -99,6 +99,7 @@ class DataProcessor:
99
  plt.title(f'トラッキングの座標({bodypart})')
100
  plt.xlabel('Frames')
101
  plt.ylabel('Coordinate(pixel)')
 
102
  plt.legend(loc='upper right')
103
  plt.savefig(f'{self.output_folder}/{bodypart}_trajectories.png')
104
  image_paths.append(
@@ -112,9 +113,10 @@ class DataProcessor:
112
  plt.plot(x, color=colors[i], label=bodypart +
113
  "(x座標)", linestyle='dashed')
114
  plt.plot(y, color=colors[i], label=bodypart + "(y座標)")
115
- plt.title(f'トラッキングの座標({bodypart})')
116
  plt.xlabel('Frames')
117
  plt.ylabel('Coordinate(pixel)')
 
118
  plt.legend(loc='upper right')
119
  plt.savefig(f'{self.output_folder}/all_trajectories.png')
120
  image_paths.append(f'{self.output_folder}/all_trajectories.png')
 
99
  plt.title(f'トラッキングの座標({bodypart})')
100
  plt.xlabel('Frames')
101
  plt.ylabel('Coordinate(pixel)')
102
+ plt.ylim(0, self.x_max)
103
  plt.legend(loc='upper right')
104
  plt.savefig(f'{self.output_folder}/{bodypart}_trajectories.png')
105
  image_paths.append(
 
113
  plt.plot(x, color=colors[i], label=bodypart +
114
  "(x座標)", linestyle='dashed')
115
  plt.plot(y, color=colors[i], label=bodypart + "(y座標)")
116
+ plt.title(f'トラッキングの座標(全付属肢)')
117
  plt.xlabel('Frames')
118
  plt.ylabel('Coordinate(pixel)')
119
+ plt.ylim(0, self.x_max)
120
  plt.legend(loc='upper right')
121
  plt.savefig(f'{self.output_folder}/all_trajectories.png')
122
  image_paths.append(f'{self.output_folder}/all_trajectories.png')