Skip to content

Commit

Permalink
bug fix in plot of pulse_schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Jan 21, 2025
1 parent 05d714f commit 10d4ec5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2694,12 +2694,14 @@ end
layout := RecipesBase.@layout [length(plots) + 1]
size --> (1000, 1000)

@series begin
subplot := 1
label := "$(time0) [s]"
aspect_ratio := :equal
time0 := time0
ps.position_control
if !isempty(ps.position_control)
@series begin
subplot := 1
label := "$(time0) [s]"
aspect_ratio := :equal
time0 := time0
ps.position_control
end
end

eqt = try
Expand Down Expand Up @@ -2733,7 +2735,7 @@ end
end
end

# plotting at infinity does not work
# plotting at infinity does not show
tmax = -Inf
tmin = Inf
for plt in plots
Expand All @@ -2743,7 +2745,7 @@ end
end

for (k, plt) in enumerate(plots)
x = plt[:x]
x = deepcopy(plt[:x])
x[x.==Inf] .= tmax
x[x.==-Inf] .= tmin
y = plt[:y]
Expand Down

0 comments on commit 10d4ec5

Please sign in to comment.