Skip to content

PlotCurveItem error with stepMode="center", autoRange and autoVisible#2595

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
djdt:master
Feb 10, 2023
Merged

PlotCurveItem error with stepMode="center", autoRange and autoVisible#2595
j9ac9k merged 1 commit intopyqtgraph:masterfrom
djdt:master

Conversation

@djdt
Copy link
Copy Markdown
Contributor

@djdt djdt commented Jan 27, 2023

An IndexError is raised for PlotCurveItems with stepMode="center" when dataBounds is called and orthoRange is not None. The mask created in dataBounds is 1 element too long (len(x) == len(y) + 1) and must be trimmed.

Fixes #2594

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Feb 10, 2023

Hi @djdt

Thanks for the PR, sorry we were radio silent for so long. The PR LGTM, I appreciates the comment too.

@j9ac9k j9ac9k merged commit a78fcd1 into pyqtgraph:master Feb 10, 2023
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.

PlotCurveItem error with stepMode="center", autoRange and autoVisible

2 participants