You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/users_guide/plotting_the_bloch_sphere.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,8 +195,9 @@ At the end of the last section we saw that the colors and marker shapes of the d
195
195
|`b.sphere_color`| Color of Bloch sphere surface |`0.2`|
196
196
|`b.sphere_alpha`| Transparency of sphere surface |`"#FFDDDD"`|
197
197
|`b.vector_color`| Colors for vectors |`["green", "#CC6600", "blue", "red"]`|
198
-
|`b.vector_width`| Width of vectors |`0.025`|
199
-
|`b.vector_arrowsize`| Scales the size of the arrow head. The first two elements scale the radius (in `x/y` direction) and the last one is the length of the cone. |`[0.07, 0.08, 0.08]`|
198
+
|`b.vector_width`| Width of vectors |`0.02`|
199
+
|`b.vector_tiplength`| Length of vector arrow head |`0.08`|
200
+
|`b.vector_tipradius`| Radius of vector arrow head |`0.05`|
200
201
|`b.view`| Azimuthal and elevation viewing angles in degrees |`[30, 30]`|
201
202
|`b.xlabel`| Labels for x-axis |`[L"x", ""]` (``+x`` and ``-x``) |
202
203
|`b.xlpos`| Positions of x-axis labels |`[1.2, -1.2]`|
Copy file name to clipboardExpand all lines: src/visualization.jl
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,9 @@ A structure representing a Bloch sphere visualization for quantum states. Availa
102
102
## Vector properties
103
103
104
104
- `vector_color::Vector{String}`: Colors for vectors. Default: `["green", "#CC6600", "blue", "red"]`
105
-
- `vector_width::Float64`: Width of vectors. Default: `0.025`
106
-
- `vector_arrowsize::Vector{Float64}`: Scales the size of the arrow head. The first two elements scale the radius (in `x/y` direction) and the last one is the length of the cone. Default: `[0.07, 0.08, 0.08]`
105
+
- `vector_width::Float64`: Width of vectors. Default: `0.02`
106
+
- `vector_tiplength::Float64`: Length of vector arrow head. Default: `0.08`
107
+
- `vector_tipradius::Float64`: Radius of vector arrow head. Default: `0.05`
107
108
108
109
## Layout properties
109
110
@@ -137,8 +138,9 @@ A structure representing a Bloch sphere visualization for quantum states. Availa
0 commit comments