Skip to content

Commit

Permalink
encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Nov 28, 2024
1 parent 532cf34 commit 982563e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def __init__(self, dest_image_path):
def _save_data_based_on_timestamp(
self, data_to_plot, x_label, y_label, title, large_sample=False
):
if len(data_to_plot) == 0:
return
with plt.ion():
log.LOGGER.debug(f"saving {title}")
plt.figure(figsize=(12, 6))
Expand Down

0 comments on commit 982563e

Please sign in to comment.