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 bf9221a commit dccf69aCopy full SHA for dccf69a
PlotsBase/ext/GastonExt.jl
@@ -687,10 +687,10 @@ function gaston_fix_ticks_overflow(ticks::AbstractVector)
687
if eltype(ticks) <: Integer
688
of = if isdefined(Gaston, :GNUPLOT_VERSION)
689
# toggle Int32 - Int64 for older gnuplot version
690
- typemax(Gaston.GNUPLOT_VERSION[] ≥ v"5.4.0" ? Int64 : Int32)
+ Gaston.GNUPLOT_VERSION[] ≥ v"5.4.0" ? Int64 : Int32
691
else
692
- typemax(Int32)
693
- end
+ Int32
+ end |> typemax
694
any(t -> abs(t) > of, ticks) && return float.(ticks)
695
end
696
return ticks
0 commit comments