Skip to content
Snippets Groups Projects
Commit 7d580df5 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent de325e0e
Branches base_2021Q3
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ def plot_roc_curve(correct_labels, prob_pos_class): ...@@ -157,7 +157,7 @@ def plot_roc_curve(correct_labels, prob_pos_class):
plt.savefig('/home/rink/test_roc', dpi=320) plt.savefig('/home/rink/test_roc', dpi=320)
def plot_image(image, fname=None, cmap='Greys', vmin=-1.5, vmax=2.5): def plot_image(image, fname=None, cmap='Greys', vmin=None, vmax=None):
Fig, ax = plt.subplots() Fig, ax = plt.subplots()
# Plot the image # Plot the image
...@@ -187,8 +187,8 @@ def plot_image(image, fname=None, cmap='Greys', vmin=-1.5, vmax=2.5): ...@@ -187,8 +187,8 @@ def plot_image(image, fname=None, cmap='Greys', vmin=-1.5, vmax=2.5):
Fig.show() Fig.show()
# Wrap up # Wrap up
Fig.clf() # Otherwise fig stays open every time #Fig.clf() # Otherwise fig stays open every time
plt.close() # Close current figure #plt.close() # Close current figure
# plt.close('all') # plt.close('all')
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment