Skip to content

Axes zoom area does not resize in 0.12.4 #2345

@Seaspider1

Description

@Seaspider1

Short description

When a plot is first generated with a given size, say width and height in pixels, the entire axes areas on the left and bottom of the plot are zoomable. When the plot size is resized such that the plot is larger (e.g. the window is grabbed along an edge or corner and expanded), only the top height portion of the y-axes or the left width portion of the x-axis retain the ability to zoom the plot using the scroll wheel. The axes area outside (i.e. the lower portion of the y-axis or the right portion of the x-axis) are not zoomable. If hovering over the plot, not on an axes, there is no issue with zooming. Reverting to 0.12.3 fixes issue.

I was able to reproduce this in both custom plots and many of the pyqtgraph.example scripts.

Tested environment(s)

  • PyQtGraph version: 0.12.4
  • Qt Python binding: PySide2 5.15.2.1 Qt 5.15.2
  • Python version: 3.7
  • NumPy version: 1.21.6
  • Operating system: Windows 10 Enterprise 21H2
  • Installation method: pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions