Skip to content
Snippets Groups Projects
Commit 6f747b8b authored by Steve Schmerler's avatar Steve Schmerler
Browse files

jupytext misc fixes in py scripts

parent 4d1397b2
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,9 @@ with torch.no_grad(): ...@@ -410,7 +410,9 @@ with torch.no_grad():
if ii == 1: if ii == 1:
ax.legend() ax.legend()
ax_sigmas.legend() ax_sigmas.legend()
# -
# +
# When running as script # When running as script
if not is_interactive(): if not is_interactive():
plt.show() plt.show()
......
...@@ -370,6 +370,8 @@ ax.set_zlim((contour_z, zlim[1] + abs(contour_z))) ...@@ -370,6 +370,8 @@ ax.set_zlim((contour_z, zlim[1] + abs(contour_z)))
ax.contourf(data_pred.XG, data_pred.YG, y_std, zdir="z", offset=contour_z) ax.contourf(data_pred.XG, data_pred.YG, y_std, zdir="z", offset=contour_z)
# - # -
# +
# When running as script # When running as script
if not is_interactive(): if not is_interactive():
plt.show() plt.show()
# -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment