We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec75cc commit 165ef97Copy full SHA for 165ef97
Plots/src/backends/gaston.jl
@@ -561,10 +561,10 @@ function gaston_fix_ticks_overflow(ticks::AbstractVector)
561
if eltype(ticks) <: Integer
562
of = if isdefined(Gaston, :GNUPLOT_VERSION)
563
# toggle Int32 - Int64 for older gnuplot version
564
- typemax(Gaston.GNUPLOT_VERSION[] ≥ v"5.4.0" ? Int64 : Int32)
+ Gaston.GNUPLOT_VERSION[] ≥ v"5.4.0" ? Int64 : Int32
565
else
566
- typemax(Int32)
567
- end
+ Int32
+ end |> typemax
568
any(t -> abs(t) > of, ticks) && return float.(ticks)
569
end
570
return ticks
0 commit comments