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] Incorrect x axis range when using bar with permute attribute #4761

Closed
matteorossini opened this issue Jun 1, 2023 · 0 comments · Fixed by #4768
Closed

[BUG] Incorrect x axis range when using bar with permute attribute #4761

matteorossini opened this issue Jun 1, 2023 · 0 comments · Fixed by #4768
Labels

Comments

@matteorossini
Copy link

Details

When using bar with the permute = (:x,:y) argument, the range of the x axis is not calculated correctly.

Minimal example

Here, the y axis ranges in [0,1], as it should:

bar(0:0.1:1)

Plots_v1 38 14_v

However, when permuting the axes, the x axis has a wider range than it should:

bar(0:0.1:1; permute = (:x,:y))

Plots_v1 38 14_h

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: 1.38.14
Backend version (]st -m <backend(s)>): GR v0.72.7
Output of versioninfo():

Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 8 on 8 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 8
  DYLD_FALLBACK_LIBRARY_PATH = [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant