File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
lib/ControlSystemsBase/src Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -290,8 +290,6 @@ _span(vec) = -(reverse(extrema(vec))...)
290
290
# xticks --> getLogTicks(ws, getlims(:xlims, plotattributes, ws))
291
291
grid --> true
292
292
293
- link --> :x
294
-
295
293
for (si,s) = enumerate (systems)
296
294
if balance
297
295
sbal = balance_statespace (s)[1 ]
@@ -319,6 +317,7 @@ _span(vec) = -(reverse(extrema(vec))...)
319
317
continue
320
318
end
321
319
phasedata = vec (phase[i, j, :])
320
+ local inds
322
321
@series begin
323
322
yscale --> _PlotScaleFunc
324
323
xscale --> :log10
@@ -351,6 +350,10 @@ _span(vec) = -(reverse(extrema(vec))...)
351
350
end
352
351
end
353
352
353
+ if eltype (phasedata) <: AbstractFloat
354
+ link --> :x # To guard agains https://github.com/JuliaPlots/Plots.jl/issues/5092 when using uncertain number systems
355
+ end
356
+
354
357
@series begin
355
358
xscale --> :log10
356
359
# ylims := ylimsphase
@@ -361,8 +364,10 @@ _span(vec) = -(reverse(extrema(vec))...)
361
364
label --> " "
362
365
group --> group_ind
363
366
phasedata = unwrap ? ControlSystemsBase. unwrap (phasedata.* (pi / 180 )).* (180 / pi ) : phasedata
364
- if adaptive
367
+ if adaptive && eltype (phasedata) <: AbstractFloat # To guard agains https://github.com/JuliaPlots/Plots.jl/issues/5092 when using uncertain number systems
365
368
downsample (ws, phasedata, _span (phasedata)/ 500 )[1 : 2 ]
369
+ elseif adaptive
370
+ ws[inds], phasedata[inds]
366
371
else
367
372
ws, phasedata
368
373
end
You can’t perform that action at this time.
0 commit comments