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 axes range when using bar with orientation = :horizontal #4756

Closed
matteorossini opened this issue May 22, 2023 · 4 comments
Closed
Labels

Comments

@matteorossini
Copy link

matteorossini commented May 22, 2023

When using bar with the orientation = :horizontal argument, the range of the axes are not calculated correctly. This is a regression in Plots 1.38.12.

Minimal example 1

bar(0:10:100; orientation = :horizontal)

Output of Plots v1.38.12:

Plots_v1 38 12

Output of Plots v1.38.11:

Plots_v1 38 11

Minimal example 2

bar(0:0.1:1; orientation = :horizontal)

Output of Plots v1.38.12:

Plots_v1 38 12_2

Output of Plots v1.38.11:

Plots_v1 38 11_2

Details

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.12
Backend version (]st -m <backend(s)>): GR v0.72.5
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 = [...]
@matteorossini matteorossini changed the title [BUG] Wrong yrange when using orientation = :horizontal in bar [BUG] Incorrect axes range when using bar with orientation = :horizontal May 22, 2023
@BeastyBlacksmith
Copy link
Member

orientation is deprecated, please use permute:

bar(0:10:100; permute = (:x, :y))

@themantra108
Copy link

themantra108 commented Jun 1, 2023

@matteorossini
Copy link
Author

matteorossini commented Jun 1, 2023

Unfortunately, there appear to be some issues with using permute as well. See #4761.

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

3 participants