Skip to content

Commit

Permalink
changed save for plots
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Aug 1, 2024
1 parent 1807842 commit 58ad628
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 22 deletions.
7 changes: 7 additions & 0 deletions bio_check/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import seaborn as sns
from matplotlib import pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib.figure import Figure
from requests import Response
from requests.exceptions import RequestException
Expand Down Expand Up @@ -250,6 +251,12 @@ def visualize(

return fig

def save_plot(self, fig: Figure, save_dest: str) -> None:
with PdfPages(save_dest) as pdf:
pdf.savefig(fig)

return plt.close(fig)

def export_csv(self):
pass

Expand Down
73 changes: 51 additions & 22 deletions demos/bio_check_demo.ipynb

Large diffs are not rendered by default.

Binary file not shown.

0 comments on commit 58ad628

Please sign in to comment.