Skip to content

Commit

Permalink
Update solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Simpson committed May 5, 2021
1 parent 5dd1e9a commit 6c90227
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classo/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,9 @@ def plot_path(
plt.tight_layout()
if type(save) == str:
plt.savefig(save + "Beta-path")

plt.show(block=False)

if type(SIGMAS) != str and plot_sigma:
plt.figure(figsize=(10, 3), dpi=80)
plt.plot(LAMBDAS, SIGMAS), plt.ylabel(PATH_sigma_path["ylabel"]), plt.xlabel(
Expand All @@ -1726,7 +1728,7 @@ def plot_alo(lambdas, alo, logscale=False, save=False):
imin = np.argmin(alo)
alomin = alo[imin]
ymin = 0.5 * alomin
ymax = 2 * alomin
ymax = 3 * alomin
xmin = lambdas[np.max(np.argwhere(alo < ymax))]
xmax = lambdas[np.min(np.argwhere(alo < ymax))]

Expand Down

0 comments on commit 6c90227

Please sign in to comment.