Skip to content

Commit

Permalink
'H-atom wavefunctions'
Browse files Browse the repository at this point in the history
  • Loading branch information
DPotoyan committed Nov 8, 2023
1 parent 4294510 commit b276b16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ch05/hydrogen_wavefunctions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42108,10 +42108,14 @@
"outputs": [],
"source": [
"def plot_orbital_2d(n,l,m, max_r = 10):\n",
" '''Adjut orbital extent max_r to fit the plots'''\n",
"\n",
" fig, ax = plt.subplots()\n",
" \n",
" im = ax.contour(normalized_wavefunction(n, l, m, max_r=max_r), 16, cmap='rocket', extent=[-max_r, max_r,-max_r, max_r])\n",
"\n",
" ax.set_title(r'$|\\psi_{{({0}, {1}, {2})}}|^2$'.format(n, l, m), fontsize=15)\n",
" \n",
" ax.set_aspect('equal')"
]
},
Expand Down

0 comments on commit b276b16

Please sign in to comment.