Skip to content

Commit

Permalink
Return the plot instead of showing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
sivonxay committed Aug 30, 2023
1 parent 90a861c commit e14c14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NanoParticleTools/optimization/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def plotting_fn(x, f=None, accept=None):
f'UV Intensity={np.power(10, -f)-100:.2f}',
fontsize=20,
transform=plt.gca().transAxes)
plt.show()
return plt

return plotting_fn

Expand Down

0 comments on commit e14c14a

Please sign in to comment.