Skip to content

Commit

Permalink
static filename
Browse files Browse the repository at this point in the history
  • Loading branch information
shenvitor committed Aug 26, 2024
1 parent 55a64ad commit a53b663
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 2 additions & 5 deletions docs/eta-pi-p/automated.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"mystnb": {
"code_prompt_show": "Import Python libraries"
},
Expand Down Expand Up @@ -489,7 +486,7 @@
"fig_2d.colorbar(mesh, ax=ax_2d)\n",
"\n",
"if STATIC_PAGE:\n",
" filename = \"dalitz-plot.png\"\n",
" filename = \"dalitz-plot-auto.png\"\n",
" fig_2d.savefig(filename)\n",
" plt.close(fig_2d)\n",
" display(UI, Image(filename))\n",
Expand Down Expand Up @@ -580,7 +577,7 @@
"fig.tight_layout()\n",
"\n",
"if STATIC_PAGE:\n",
" filename = \"1d-histograms.svg\"\n",
" filename = \"1d-histograms-auto.svg\"\n",
" fig.savefig(filename)\n",
" plt.close(fig)\n",
" display(UI, SVG(filename))\n",
Expand Down
10 changes: 7 additions & 3 deletions docs/eta-pi-p/manual.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@
"fig_2d.colorbar(mesh, ax=ax_2d)\n",
"\n",
"if STATIC_PAGE:\n",
" filename = \"dalitz-plot.png\"\n",
" filename = \"dalitz-plot-man.png\"\n",
" fig_2d.savefig(filename)\n",
" plt.close(fig_2d)\n",
" display(UI, Image(filename))\n",
Expand Down Expand Up @@ -957,7 +957,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"outputs": [],
"source": [
"%matplotlib widget\n",
Expand Down Expand Up @@ -1019,7 +1023,7 @@
"fig.tight_layout()\n",
"\n",
"if STATIC_PAGE:\n",
" filename = \"1d-histograms.svg\"\n",
" filename = \"1d-histograms-man.svg\"\n",
" fig.savefig(filename)\n",
" plt.close(fig)\n",
" display(UI, SVG(filename))\n",
Expand Down

0 comments on commit a53b663

Please sign in to comment.