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: src/visualization.jl
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -79,30 +79,31 @@ A structure representing a Bloch sphere visualization for quantum states. Availa
79
79
80
80
## Style properties
81
81
82
-
- `font_color::String`: Color of axis labels and text
82
+
- `font_color::String`: Color of axis labels and text. Default: `"black"`
83
83
- `font_size::Int`: Font size for labels. Default: `20`
84
-
- `frame_alpha::Float64`: Transparency of the wire frame
85
-
- `frame_color::String`: Color of the wire frame
84
+
- `frame_alpha::Float64`: Transparency of the wire frame. Default: `0.2`
85
+
- `frame_color::String`: Color of the wire frame. Default: `"gray"`
86
+
- `frame_width::Float64` : Width of wire frame. Default: `1.0`
86
87
87
88
## Point properties
88
89
89
-
- `point_default_color::Vector{String}}`: Default color cycle for points
90
-
- `point_color::Vector{String}}`: List of colors for Bloch point markers to cycle through
90
+
- `point_default_color::Vector{String}}`: Default color cycle for points. Default: `["blue", "red", "green", "#CC6600"]`
91
+
- `point_color::Vector{String}}`: List of colors for Bloch point markers to cycle through. Default: `Union{Nothing,String}[]`
91
92
- `point_marker::Vector{Symbol}}`: List of point marker shapes to cycle through. Default: `[:circle, :rect, :diamond, :utriangle]`
92
-
- `point_size::Vector{Int}}`: List of point marker sizes (not all markers look the same size when plotted)
93
-
- `point_style::Vector{Symbol}}`: List of marker styles
94
-
- `point_alpha::Vector{Float64}}`: List of marker transparencies
93
+
- `point_size::Vector{Int}}`: List of point marker sizes (not all markers look the same size when plotted). Default: `[5.5, 6.2, 6.5, 7.5]`
94
+
- `point_style::Vector{Symbol}}`: List of marker styles. Default: `Symbol[]`
95
+
- `point_alpha::Vector{Float64}}`: List of marker transparencies. Default: `Float64[]`
95
96
96
97
## Sphere properties
97
98
98
-
- `sphere_color::String`: Color of Bloch sphere surface
99
+
- `sphere_color::String`: Color of Bloch sphere surface. Default: `"#FFDDDD"`
99
100
- `sphere_alpha::Float64`: Transparency of sphere surface. Default: `0.2`
100
101
101
102
## Vector properties
102
103
103
-
- `vector_color::Vector{String}`: Colors for vectors
104
-
- `vector_width::Float64`: Width of vectors
105
-
- `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.
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]`
106
107
107
108
## Layout properties
108
109
@@ -124,8 +125,9 @@ A structure representing a Bloch sphere visualization for quantum states. Availa
0 commit comments