Skip to content

Commit

Permalink
color change of resonance line of mass distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
shenvitor committed Nov 17, 2023
1 parent 0b7bc1d commit f2ad0b7
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions docs/lecture02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2281,22 +2281,22 @@
"source": [
"fig, (ax1, ax2, ax3) = plt.subplots(figsize=(12, 4), ncols=3)\n",
"fig.suptitle(\"1D histogram of $s_{12}, s_{23}$, and $s_{31}$\")\n",
"ax1.hist(s12, bins=100)\n",
"ax1.hist(s12, bins=100, color=\"black\", histtype=\"step\")\n",
"ax1.set_xlabel(R\"$s_{12}$\")\n",
"ax1.set_ylabel(\"counts\")\n",
"ax1.axvline(R12, c=\"red\", ls=\"dashed\", label=\"$R_{12}$\")\n",
"ax1.axvline(R12, c=\"C0\", ls=\"dashed\", label=\"$R_{12}$\")\n",
"ax1.legend()\n",
"\n",
"ax2.hist(s23, bins=100)\n",
"ax2.hist(s23, bins=100, color=\"black\", histtype=\"step\")\n",
"ax2.set_xlabel(R\"$s_{23}$\")\n",
"ax2.set_ylabel(\"counts\")\n",
"ax2.axvline(R23, c=\"red\", ls=\"dashed\", label=\"$R_{23}$\")\n",
"ax2.axvline(R23, c=\"C1\", ls=\"dashed\", label=\"$R_{23}$\")\n",
"ax2.legend()\n",
"\n",
"ax3.hist(s31, bins=100)\n",
"ax3.hist(s31, bins=100, color=\"black\", histtype=\"step\")\n",
"ax3.set_xlabel(R\"$s_{31}$\")\n",
"ax3.set_ylabel(\"counts\")\n",
"ax3.axvline(R31, c=\"red\", ls=\"dashed\", label=\"$R_{31}$\")\n",
"ax3.axvline(R31, c=\"C2\", ls=\"dashed\", label=\"$R_{31}$\")\n",
"ax3.legend()\n",
"\n",
"fig.tight_layout()\n",
Expand Down Expand Up @@ -2602,27 +2602,34 @@
"source": [
"fig, (ax1, ax2, ax3) = plt.subplots(figsize=(12, 4), ncols=3)\n",
"fig.suptitle(\"1D histogram of $s_{12}, s_{23}$, and $s_{31}$\")\n",
"ax1.hist(s12, bins=100)\n",
"ax1.hist(s12, bins=100, color=\"black\", histtype=\"step\")\n",
"ax1.set_xlabel(R\"$s_{12}$\")\n",
"ax1.set_ylabel(\"counts\")\n",
"ax1.axvline(R12, c=\"red\", ls=\"dashed\", label=\"$R_{12}$\")\n",
"ax1.axvline(R12, c=\"C0\", ls=\"dashed\", label=\"$R_{12}$\")\n",
"ax1.legend()\n",
"\n",
"ax2.hist(s23, bins=100)\n",
"ax2.hist(s23, bins=100, color=\"black\", histtype=\"step\")\n",
"ax2.set_xlabel(R\"$s_{23}$\")\n",
"ax2.set_ylabel(\"counts\")\n",
"ax2.axvline(R23, c=\"red\", ls=\"dashed\", label=\"$R_{23}$\")\n",
"ax2.axvline(R23, c=\"C1\", ls=\"dashed\", label=\"$R_{23}$\")\n",
"ax2.legend()\n",
"\n",
"ax3.hist(s31, bins=100)\n",
"ax3.hist(s31, bins=100, color=\"black\", histtype=\"step\")\n",
"ax3.set_xlabel(R\"$s_{31}$\")\n",
"ax3.set_ylabel(\"counts\")\n",
"ax3.axvline(R31, c=\"red\", ls=\"dashed\", label=\"$R_{31}$\")\n",
"ax3.axvline(R31, c=\"C2\", ls=\"dashed\", label=\"$R_{31}$\")\n",
"ax3.legend()\n",
"\n",
"fig.tight_layout()\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit f2ad0b7

Please sign in to comment.