This adds a very experimental and basic SDL2 interactive backend.
Simply compile your program with -d:experimentalSDL2. It makes
ggshow available (which takes the size of the SDL2 window as
optional arguments).
It creates an SDL2 window of the plot (and pauses the main
thread). The only interactivity supported at the moment is zooming
using the mouse. Click and hold on a rectangle zooms to that rectangle
and a single click reverts the zoom.
Note: we do not catch exceptions due to invalid data ranges etc at the
moment. Experiment at your own risk. :)
This adds a very experimental and basic SDL2 interactive backend.
Simply compile your program with
-d:experimentalSDL2
. It makesggshow
available (which takes the size of the SDL2 window as optional arguments).It creates an SDL2 window of the plot (and pauses the main thread). The only interactivity supported at the moment is zooming using the mouse. Click and hold on a rectangle zooms to that rectangle and a single click reverts the zoom.
Note: we do not catch exceptions due to invalid data ranges etc at the moment. Experiment at your own risk. :)