Skip to content

Conversation

@BlazZupan
Copy link
Contributor

Issue

The vertical bar in the graphs such as scree plot (PCA) is almost invisible on the computer screen, and invisible when using a projector:

image
Description of changes

The bar is now thicker, and also more prominent (thick blue) when hovering.

image
Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented May 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.80%. Comparing base (872e4ae) to head (df5114a).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7091   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files         335      335           
  Lines       73916    73928   +12     
=======================================
+ Hits        65638    65655   +17     
+ Misses       8278     8273    -5     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BlazZupan BlazZupan changed the title SliderGraph: thicker threshold line [ENH] SliderGraph: thicker threshold line May 23, 2025
ev : HoverEvent
The hover event from pyqtgraph
"""
if not hasattr(ev, 'isEnter'): # Add check for event type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this check ever fail? Also, docstring declares this is a HoverEvent.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you really need to check this, use if not isinstance(ev, HoverEvent).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

self._line.setPen(mkPen(self.palette().text().color(), width=2))

# Set up hover state handling
self._line.hoverEvent = self._handle_hover # Changed from lambda to direct method reference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand the comment.

Also, I'd prefer deriving a new class from InfiniteLine and override the hoverEvent method. Monkey-patching is not very pythonic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, new class introduced

# Set up hover state handling
self._line.hoverEvent = self._handle_hover # Changed from lambda to direct method reference

# Initial pen style
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@janezd janezd added this to the 3.39 milestone May 30, 2025
@janezd janezd merged commit 6ef747b into master Oct 14, 2025
21 of 30 checks passed
@janezd janezd deleted the thicker-slider branch October 26, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants