PlotPyStack / PlotPy

Curve and image plotting tools for Python/Qt applications
BSD 3-Clause "New" or "Revised" License
28 stars 2 forks source link

Contrast panel: levels histogram is sometimes not updated #5

Closed PierreRaybaut closed 10 months ago

PierreRaybaut commented 10 months ago

How to reproduce?

  1. Run the test script "plotpy\tests\widgets\test_simple_window.py"
  2. Add a random image
  3. Show the contrast panel (right-click on the canvas, see context menu)
  4. Select the image item in the canvas: the levels histogram is plotted in the contrast panel
  5. Open the "plotpy\tests\data\brain.png" test image
  6. Select the image: the levels histogram is polluted with the one of the previous image
  7. Remove the images: the levels histogram stays, no matter what is done afterwards