Skip to content

Correct 1D plot zoom rendering#21

Open
mrecachinas wants to merge 1 commit intospectriclabs:mainfrom
mrecachinas:fix-1d-zoom
Open

Correct 1D plot zoom rendering#21
mrecachinas wants to merge 1 commit intospectriclabs:mainfrom
mrecachinas:fix-1d-zoom

Conversation

@mrecachinas
Copy link

Restore this.imin tracking in get_data() so prep() can compute correct buffer offsets. Fix prep() to use sample-aligned xstart, cap n1/n2 to fetched point count, restore subarray slicing, and use proper x-coordinates. Add early return in draw() when zoom region has no data overlap to prevent undefined ymin/ymax.

…ignment

Restore this.imin tracking in get_data() so prep() can compute correct
buffer offsets. Fix prep() to use sample-aligned xstart, cap n1/n2 to
fetched point count, restore subarray slicing, and use proper
x-coordinates. Add early return in draw() when zoom region has no data
overlap to prevent undefined ymin/ymax.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant