@@ -1001,6 +1001,10 @@ Plots a phantom map for a specific spin parameter given by `key`.
1001
1001
- `darkmode`: (`::Bool`, `=false`) boolean to indicate whether to display darkmode style
1002
1002
- `view_2d`: (`::Bool`, `=false`) boolean to indicate whether to use a 2D scatter plot
1003
1003
- `colorbar`: (`::Bool`, `=true`) boolean to indicate whether to display a colorbar
1004
+ - `max_spins`:(`::Int`, `=100_000`) maximum number of displayed spins
1005
+ - `intermediate_time_samples`:(`::Int`, `=0`) intermediate time samples between motion `t_start` and `t_end`
1006
+ - `max_time_samples`:(`::Int`, `=100`) maximum number of time samples
1007
+ - `frame_duration_ms`:(`::Int`, `=250`) time in miliseconds between two frames
1004
1008
1005
1009
# Returns
1006
1010
- `p`: (`::PlotlyJS.SyncPlot`) plot of the phantom map for a specific spin parameter
@@ -1124,8 +1128,8 @@ function plot_phantom_map(
1124
1128
cmin_key = get (kwargs, :cmin , factor * cmin_key)
1125
1129
cmax_key = get (kwargs, :cmax , factor * cmax_key)
1126
1130
1127
- t = process_times (m )
1128
- x, y, z = get_spin_coords (m , obj. x, obj. y, obj. z, t' )
1131
+ t = process_times (obj . motion )
1132
+ x, y, z = get_spin_coords (obj . motion , obj. x, obj. y, obj. z, t' )
1129
1133
1130
1134
x0 = - maximum (abs .([x y z])) * 1e2
1131
1135
xf = maximum (abs .([x y z])) * 1e2
0 commit comments