Plots with Plotly Express#

The plotly library has two plotting interfaces, or APIs you can work with. The simplest

Creating a Line Plot with Plotly Express#

import pandas as pd
import plotly.express as px
s_orbitals = pd.read_csv("s_orbitals_1D.csv")

s_orbitals.head()
r 1s 2s 3s
0 0.000000 0.564190 0.199471 0.108578
1 0.517241 0.336349 0.114183 0.061683
2 1.034483 0.200519 0.057408 0.029966
3 1.551724 0.119542 0.020580 0.009313
4 2.068966 0.071266 -0.002445 -0.003390
fig = px.line(s_orbitals, x="r", y="1s")
fig.show()