Skip to content

Commit a3ea9c0

Browse files
Use LScene instead of Axis3 for Bloch Sphere
1 parent 64ec15d commit a3ea9c0

File tree

3 files changed

+75
-89
lines changed

3 files changed

+75
-89
lines changed

docs/src/users_guide/plotting_the_bloch_sphere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ yp = sin.(th)
121121
zp = zeros(20)
122122
pnts = [xp, yp, zp]
123123
add_points!(b, pnts)
124-
fig, ax = render(b)
124+
fig, lscene = render(b)
125125
fig
126126
```
127127

@@ -132,7 +132,7 @@ xz = zeros(20)
132132
yz = sin.(th)
133133
zz = cos.(th)
134134
add_points!(b, [xz, yz, zz])
135-
fig, ax = render(b)
135+
fig, lscene = render(b)
136136
fig
137137
```
138138

@@ -148,7 +148,7 @@ yp = sin.(th)
148148
zp = zeros(20)
149149
pnts = [xp, yp, zp]
150150
add_points!(b, pnts, meth=:m) # add `meth=:m` to signify 'multi' colored points
151-
fig, ax = render(b)
151+
fig, lscene = render(b)
152152
fig
153153
```
154154

@@ -157,7 +157,7 @@ Now, the data points cycle through a variety of predefined colors. Now lets add
157157
```@example Bloch_sphere_rendering
158158
pnts = [xz, yz, zz]
159159
add_points!(b, pnts) # no `meth=:m`
160-
fig, ax = render(b)
160+
fig, lscene = render(b)
161161
fig
162162
```
163163

0 commit comments

Comments
 (0)