Skip to content

Commit 3316d30

Browse files
committed
DOC: add 1D projections of the Dalitz plot
1 parent 5242a73 commit 3316d30

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.cspell.json

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"nansum",
6969
"nbconvert",
7070
"nbformat",
71+
"ncols",
7172
"noreply",
7273
"pandoc",
7374
"pbar",
@@ -77,9 +78,11 @@
7778
"prereleased",
7879
"pygments",
7980
"redeboer",
81+
"sharey",
8082
"startswith",
8183
"textwrap",
8284
"toctree",
85+
"wspace",
8386
"xlabel",
8487
"xreplace",
8588
"xrightarrow",

docs/jpsi2ksp.ipynb

+52
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,19 @@
676676
"func = create_function(dalitz_expression, backend=\"jax\")"
677677
]
678678
},
679+
{
680+
"cell_type": "code",
681+
"execution_count": null,
682+
"metadata": {
683+
"tags": [
684+
"remove-input"
685+
]
686+
},
687+
"outputs": [],
688+
"source": [
689+
"%config InlineBackend.figure_formats = ['png']"
690+
]
691+
},
679692
{
680693
"cell_type": "code",
681694
"execution_count": null,
@@ -711,6 +724,45 @@
711724
"ax.set_ylabel(R\"$M^2\\left(K^0\\bar{p}\\right)$\")\n",
712725
"plt.show()"
713726
]
727+
},
728+
{
729+
"cell_type": "code",
730+
"execution_count": null,
731+
"metadata": {
732+
"tags": [
733+
"remove-input"
734+
]
735+
},
736+
"outputs": [],
737+
"source": [
738+
"%config InlineBackend.figure_formats = ['svg']"
739+
]
740+
},
741+
{
742+
"cell_type": "code",
743+
"execution_count": null,
744+
"metadata": {
745+
"jupyter": {
746+
"source_hidden": true
747+
},
748+
"tags": [
749+
"hide-input",
750+
"full-width"
751+
]
752+
},
753+
"outputs": [],
754+
"source": [
755+
"plt.rc(\"font\", size=16)\n",
756+
"fig, axes = plt.subplots(figsize=(18, 6), ncols=2, sharey=True)\n",
757+
"fig.subplots_adjust(wspace=0.02)\n",
758+
"ax1, ax2 = axes\n",
759+
"ax1.fill_between(jnp.sqrt(X[0]), jnp.nansum(normalized_intensities, axis=0))\n",
760+
"ax2.fill_between(jnp.sqrt(Y[:, 0]), jnp.nansum(normalized_intensities, axis=1))\n",
761+
"ax1.set_ylabel(\"Normalized intensity (a.u.)\")\n",
762+
"ax1.set_xlabel(R\"$M\\left(K^0\\Sigma^+\\right)$\")\n",
763+
"ax2.set_xlabel(R\"$M\\left(K^0\\bar{p}\\right)$\")\n",
764+
"plt.show()"
765+
]
714766
}
715767
],
716768
"metadata": {

0 commit comments

Comments
 (0)