Skip to content

feat: add back and forward buttons - #601

Merged
jokasimr merged 6 commits into
mainfrom
add-back
Aug 10, 2026
Merged

feat: add back and forward buttons#601
jokasimr merged 6 commits into
mainfrom
add-back

Conversation

@jokasimr

@jokasimr jokasimr commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #587

@jokasimr
jokasimr requested a review from nvaytet August 7, 2026 12:57
def test_back_and_forward_buttons_navigate_view_history(ndim):
da = data_array(ndim=ndim)
p = da.plot()
toolbar = p.canvas.fig.canvas.toolbar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I got slightly confused here, because toolbar is the matplotlib toolbar. I guess you need that to be able to do push_current(). But I thought below we were then testing clicking buttons on the mpl toolbar. It's easy to miss that toolbar is the mpl one, and p.toolbar is our toolbar.

Can we either change the variable name or add a comment (or both)?

@jokasimr
jokasimr enabled auto-merge August 10, 2026 09:35
@jokasimr
jokasimr merged commit e9d197f into main Aug 10, 2026
5 checks passed
@jokasimr
jokasimr deleted the add-back branch August 10, 2026 10:03
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.

Redo/undo buttons for widget

2 participants