Skip to content

Commit f53dbeb

Browse files
authored
Merge pull request #26 from clinfo/plot
グラフ描画機能の微修正
2 parents 9e0e39f + 6dfa92c commit f53dbeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dmm/dmm_plot.py

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def plot_fig(self, idx, args, data, result_data):
211211
self.draw_line(e,label="error",color="b",num=args.obs_num_particle)
212212
plt.legend()
213213
plt.title("error")
214+
plt.tight_layout()
214215
else:
215216

216217
plt.subplot(2, 1, 1)
@@ -221,6 +222,7 @@ def plot_fig(self, idx, args, data, result_data):
221222

222223
plt.subplot(2, 1, 2)
223224
self.plot_x(args,idx,s,data)
225+
plt.tight_layout()
224226
if args.anim:
225227
h=data.x.shape[2]
226228
if args.x_plot_type=="line":

0 commit comments

Comments
 (0)