You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the first 3 lines of the following MWE, the heatmap displays fine.
But then the xlims! line causes a an error with a long output, first part of which is shown below.
using Plots
x =LinRange(-1,1,101)*4heatmap(x, x, x*x', xticks=(-1:1)*maximum(x))
xlims!(-2,2)
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: InexactError: check_top_bit(UInt64, -9223372036854775481)
Stacktrace:
[1] throw_inexacterror(f::Symbol, #unused#::Type{UInt64}, val::Int64)
@ Core ./boot.jl:602
Removing the xticks option eliminates the error, so the issue is some coupling between xticks and xlims.
Change the 4 to a 2 and then it works!?
I searched issues for check_top_bit and found nothing that mentioned it...
Backends
This bug occurs on ( insert x below )
Backend
yes
no
untested
gr (default)
x
pyplot
x
plotly
x
plotlyjs
x
pgfplotsx
x
inspectdr
x
Versions
Plots.jl version: v1.11.2
Backend version (]st -m): GR v0.57.1
Output of versioninfo():
Exactly, I can reproduce the same issue. I have tried to define a different range for the x axis, or remove the command xticks = (-1:1)*maximum(x), and then it works fine. I guess that there might be a confliction between the defined xlims and xticks.
Details
Running the first 3 lines of the following MWE, the heatmap displays fine.
But then the
xlims!
line causes a an error with a long output, first part of which is shown below.Removing the
xticks
option eliminates the error, so the issue is some coupling betweenxticks
andxlims
.Change the
4
to a2
and then it works!?I searched issues for
check_top_bit
and found nothing that mentioned it...Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.11.2
Backend version (
]st -m
): GR v0.57.1Output of
versioninfo()
:Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.6.0)
CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
The text was updated successfully, but these errors were encountered: