@@ -165,6 +165,7 @@ def main(rosbag_path: Path, save_dir: Path = None) -> None:
165
165
plt .tight_layout ()
166
166
save_path = save_dir / f"{ diag_name_to_filename (diag_name )} .png"
167
167
plt .savefig (save_path , bbox_inches = "tight" , pad_inches = 0.05 )
168
+ plt .close ()
168
169
169
170
#################
170
171
# ekf_localizer #
@@ -198,6 +199,7 @@ def main(rosbag_path: Path, save_dir: Path = None) -> None:
198
199
plt .tight_layout ()
199
200
save_path = save_dir / f"{ diag_name_to_filename (diag_name )} .png"
200
201
plt .savefig (save_path , bbox_inches = "tight" , pad_inches = 0.05 )
202
+ plt .close ()
201
203
202
204
#############################
203
205
# pose_instability_detector #
@@ -242,6 +244,7 @@ def main(rosbag_path: Path, save_dir: Path = None) -> None:
242
244
plt .tight_layout ()
243
245
save_path = save_dir / f"{ diag_name_to_filename (diag_name )} .png"
244
246
plt .savefig (save_path , bbox_inches = "tight" , pad_inches = 0.05 )
247
+ plt .close ()
245
248
246
249
##############################
247
250
# localization_error_monitor #
@@ -267,6 +270,7 @@ def main(rosbag_path: Path, save_dir: Path = None) -> None:
267
270
plt .tight_layout ()
268
271
save_path = save_dir / f"{ diag_name_to_filename (diag_name )} .png"
269
272
plt .savefig (save_path , bbox_inches = "tight" , pad_inches = 0.05 )
273
+ plt .close ()
270
274
271
275
#######################
272
276
# gyro_bias_validator #
@@ -303,6 +307,7 @@ def main(rosbag_path: Path, save_dir: Path = None) -> None:
303
307
plt .tight_layout ()
304
308
save_path = save_dir / f"{ diag_name_to_filename (diag_name )} .png"
305
309
plt .savefig (save_path , bbox_inches = "tight" , pad_inches = 0.05 )
310
+ plt .close ()
306
311
307
312
308
313
if __name__ == "__main__" :
0 commit comments