Skip to content

Commit 888588c

Browse files
committed
Fix plot update on non-Windows platforms after inserting a point using the EditPointTool
1 parent 94afa99 commit 888588c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
🛠️ Bug fixes:
3737

38+
* Fixed plot update after inserting a point using the `EditPointTool` on non-Windows platforms
3839
* [Issue #46](https://github.com/PlotPyStack/PlotPy/issues/46) - Contrast adjustment with 'Eliminate outliers' failed for float images with high dynamic range
3940
* Fixed `ErrorBarCurveItem` handling of all-NaN data:
4041
* Fixed `ValueError: zero-size array to reduction operation minimum which has no identity` when error bar curves contain only NaN values

plotpy/tools/curve.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ def insert_point_at_selection(
954954
0,
955955
QC.QPointF(*new_pos), # type: ignore
956956
)
957+
filter.plot.replot() # Needed on non-Windows platforms to update the view
957958

958959
def __get_active_curve_item(self, filter: StatefulEventFilter) -> CurveItem:
959960
"""Get active curve item. Simple method to avoid type checking errors.

0 commit comments

Comments
 (0)