Skip to content

Commit fa29008

Browse files
authored
Fix x density slice on tutorial (#1085)
1 parent b587304 commit fa29008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/guide/tutorial.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ stack(scfres.occupation)
101101
# and then in the spin component.
102102
rvecs = collect(r_vectors(basis))[:, 1, 1] # slice along the x axis
103103
x = [r[1] for r in rvecs] # only keep the x coordinate
104-
plot(x, scfres.ρ[1, :, 1, 1], label="", xlabel="x", ylabel="ρ", marker=2)
104+
plot(x, scfres.ρ[:, 1, 1, 1], label="", xlabel="x", ylabel="ρ", marker=2)
105105

106106
# We can also perform various postprocessing steps:
107107
# We can get the Cartesian forces (in Hartree / Bohr):

0 commit comments

Comments
 (0)