INNER CODE UNIT · Python

x

ssebastianmag/hydrogen-wavefunctions · hwf_plots.py:156

        x=ax.get_position().x0 + 0.07, y=0.868,
        s=r"$|\psi_{n\ell m}(r,\theta,\phi)|^{2} = |R_{n\ell}(r) Y_{\ell}^{m}(\theta,\phi)|^2$",
        fontsize=40, color=title_color
    )

    # Colormap colorbar
    cbar = plt.colorbar(im, fraction=0.046, pad=0.025)
    cbar.set_label(r"Probability density $|\psi|^{2}$ [m$^{-3}$]", fontsize=40, color=text_color, labelpad=34)
    cbar.ax.tick_params(labelsize=26, colors=text_color)
    cbar.ax.set_frame_on(not use_dark_theme)

    sf = ticker.ScalarFormatter(useMathText=True)
    sf.set_powerlimits((0, 0))
    cbar.formatter = sf
    cbar.update_ticks()

    fig.canvas.draw()
    off = cbar.ax.yaxis.get_offset_text()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…