Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWScatterplotGraph: Emit signals when resizing data points #3751

Merged
merged 1 commit into from Apr 15, 2019

Conversation

Projects
None yet
2 participants
@janezd
Copy link
Contributor

commented Apr 12, 2019

Issue

In Network Explorer, I wanted to draw lines to the edge of the circles, not to the center. I tried to override update_sizes to call self.update_edges() after super().update_sizes()... but this didn't work because update_size does not change sizes immediately but updates them from a separate thread.

Furthermore, it would be nice if edges were animated together with circles.

Description of changes

I added signals that are emitted at the start and end of resize, and at each step.

Includes
  • Code changes
  • Tests

@janezd janezd requested a review from VesnaT Apr 12, 2019

self.timer = QTimer(self.scatterplot_item, interval=50)
self.timer.timeout.connect(Timeout())
self.timer.start()
else:
self.begin_resizing.emit()

This comment has been minimized.

Copy link
@janezd

janezd Apr 12, 2019

Author Contributor

I know that this line repeats and could be before if, but I prefer having pairs begin-end.

@codecov

This comment has been minimized.

Copy link

commented Apr 12, 2019

Codecov Report

Merging #3751 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #3751      +/-   ##
=========================================
+ Coverage   84.89%   84.9%   +<.01%     
=========================================
  Files         374     374              
  Lines       68798   68815      +17     
=========================================
+ Hits        58409   58426      +17     
  Misses      10389   10389
@VesnaT

VesnaT approved these changes Apr 15, 2019

@VesnaT VesnaT merged commit 9cf23e6 into biolab:master Apr 15, 2019

5 checks passed

codecov/patch 100% of diff hit (target 95%)
Details
codecov/project 84.9% (+<.01%) compared to f1b1616
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
license/cla Contributor License Agreement is signed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.