Plots.jl
Plots.jl copied to clipboard
[BUG] Relative positioning of annotations tuple cannot mix integer and float
Details
Change the MWE in #3634 such that the relative position is (1, 0.5) or (0.5, 1) leads to error like
Failed to show value:
MethodError: no method matching locate_annotation(::Plots.Subplot{Plots.GRBackend}, ::Tuple{Float64, Int64}, ::Plots.PlotText)
Backends
This bug occurs on ( insert x below )
| Backend | yes | no | untested |
|---|---|---|---|
| gr (default) | x | ||
| pyplot | x | ||
| plotlyjs | x | ||
| pgfplotsx | x | ||
| unicodeplots | x | ||
| inspectdr | x | ||
| gaston | x |
Versions
Plots.jl version: v1.31.1
Backend version (]st -m <backend(s)>): GR v0.64.4
Output of versioninfo():
Julia Version 1.7.3
Commit 742b9abb4d (2022-05-06 12:58 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)