Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Heatmap doesnt error when its passed the wrong x-axes and y-axes #4897

Open
eirikbrandsaas opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@eirikbrandsaas
Copy link

Details

using Plots

xs = 1:1:10
ys = 1:1:5

H = [i+j for i in xs, j in ys]

heatmap(ys,xs,H) # Works, correct axes
contour(ys,xs,H) # Works, correct axes
contour(xs,ys,H) # Errors correctly since axes are incorrect
heatmap(xs,ys,H) # Doesn't error even though axes are incorrect

The last line shouldn't execute, since the dimensions are all wrong.

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: [91a5bcdd] Plots v1.40.1
Backend version (]st -m <backend(s)>): [28b8d3ca] GR v0.73.2
Output of versioninfo():

Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
  Threads: 5 on 12 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4
@eirikbrandsaas
Copy link
Author

Of course now I find a related issue #4874 so this can probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant