Skip to content

Fix: Update axes after data is set#1159

Merged
j9ac9k merged 1 commit intopyqtgraph:developfrom
2xB:2xb-fix-1144
Apr 9, 2020
Merged

Fix: Update axes after data is set#1159
j9ac9k merged 1 commit intopyqtgraph:developfrom
2xB:2xb-fix-1144

Conversation

@2xB
Copy link
Copy Markdown
Contributor

@2xB 2xB commented Apr 8, 2020

On data changes on PlotCurveItems, bounds are updated before the new data is set, leading to axes not performing autoscaling directly. This PR changes the order of execution for setting data and updating bounds to fix that.

Fixes #1144

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Apr 9, 2020

Hi @2xB Thanks for the PR

This CI failure that occurred is something that we've seen from minor changes, using having to do w/ the use of a QApplication (or lack-there-of).

I'm really on the verge of skipping that specific test.... it's failing just on macOS/Qt5.9/Python3.6 pipeline....

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Apr 9, 2020

I really hate that this test failure is getting in the way of this PR, @ixjlyons as you were the last person to run into this, figure you may have an opinion?

@2xB
Copy link
Copy Markdown
Contributor Author

2xB commented Apr 9, 2020

Let's test if this failure is consistent:

@2xB 2xB closed this Apr 9, 2020
@2xB 2xB reopened this Apr 9, 2020
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Apr 9, 2020

Good call on closing/opening ... I just reran the failed pipeline, which failed a second time for the same test... anyway, as it all passes now, I'm inclined to merge.

@j9ac9k j9ac9k merged commit 4dde152 into pyqtgraph:develop Apr 9, 2020
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.

Plots after event loop has started does not update axes immediately

2 participants