Skip to content

[BUG] Incorrect axes range when using bar with orientation = :horizontal #4756

@matteorossini

Description

@matteorossini

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 = [...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions