animatplot icon indicating copy to clipboard operation
animatplot copied to clipboard

[Feature] Step back and forth by one frame

Open TomNicholas opened this issue 5 years ago • 3 comments

Currently animatplot's animation.controls() supply a play/pause button. It works really nicely, but once the animation is paused you have no option but to resume playing it at the same speed.

What would be great is to add two more buttons, to step one frame forwards or one frame backwards.

Obviously animatplot is not a full GUI, but I think this small change would be within scope and could be unobtrusive. If you used pictorial represenations of the actions then you could probably squeeze the three new buttons required into the same amount of space that the current button occupies. I'm imagining something like :rewind: :arrow_forward: :fast_forward: (apologies for using emojis to demonstrate).

This shouldn't be hard to do because the buttons just call the _update method.

TomNicholas avatar Jan 31 '19 18:01 TomNicholas

If we add a step forward/back by one, and maybe we should put the buttons in a line below the slider in a row. This would deal with the text of the slider overlapping.

t-makaro avatar Feb 01 '19 22:02 t-makaro

+5 to buttons below slider. I think it's the most elegant solution

dcherian avatar Feb 01 '19 23:02 dcherian

Also it should be possible to use the dragging argument of the slider widget to move a paused animation to a particular frame by dragging it with the mouse...

TomNicholas avatar Apr 11 '19 13:04 TomNicholas