Skip to content

artifacts in fill under curve for histograms in log mode #2312

@stan-servaenergy

Description

@stan-servaenergy

Short description

Some histograms are not properly filled when log mode is enabled (for X or Y axis).

Steps to reproduce

  1. Run histogram.py from examples.
  2. Right-click to bring up menu, select "Plot Options" -> "Transforms" -> "log X" or "log Y"'

Note that the dataset is randomly generated and it does not happen every single time. It does happen about 7 out of 10 times for me.

Expected behavior

Histogram stepped-curve is properly filled all the way down to fill level.

Real behavior

Fill is incomplete, cut off.
Screenshot from 2022-05-25 17-46-21

Tested environment(s)

  • PyQtGraph version: 0.12.4

  • Qt Python binding: PySide6 6.2.1 Qt 6.2.1

  • Python version: Python 3.9.7

  • NumPy version: 1.21.6

  • Operating system: Linux fes 5.13.0-44-generic #49-Ubuntu SMP Wed May 18 13:28:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  • Installation method: pip3 install -r requirements.txt

pyqtgraph>=0.12.3
PySide6==6.2.1 # 6.2.2 throws exception with pyqtgraph == 0.12.3
cython>=0.29.24
psutil~=5.8.0
numpy~=1.21.4
sharedmem>=0.3.8
aiohttp~=3.8.1
scipy>=1.6.0
setuptools>=60.5.0
h5py>=3.6.0
Pillow>=9.0.0
aiortc==1.2.1
wheel>=0.34.2
fast-histogram>=0.10

Additional context

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