Back to the main page.

Bug 1642 - ft_databrowser: implement even more magical data-dragging

Status ASSIGNED
Reported 2012-08-08 17:48:00 +0200
Modified 2014-01-25 10:49:10 +0100
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 enhancement
Assigned to: Roemer van der Meij
URL:
Tags:
Depends on:
Blocks: 2314
See also:

Roemer van der Meij - 2012-08-08 17:48:07 +0200

Even better magic. Check the feasibility of dragging the data (hand-symbol-pointer of course) left and right, i.e. shift the time-axis with small amounts and redraw. Maybe the redefinetrialing/redrawing/etc doesn't have to occur, and there is some figure-wizardy for actually shifting the data/axis-system in view (i.e. part of the axis hidden off-screen and off-figure)? Oh my god the possibilities are endless. Wishful thinking?


Jörn M. Horschig - 2012-08-09 10:04:01 +0200

have you looked into the scrollbar stuff, not quite sure if that helps though, but you might want to have a look (I don't remember anymore, too long ago) http://www.mathworks.com/matlabcentral/fileexchange/1670-scrolling-plot-demo


Roemer van der Meij - 2012-08-24 13:09:57 +0200

A quote from the file-exchange that will be very handy" "From your other post in this thread, it appears that you're replotting the data each time the slider's callback executes. There's no need to do this; plot all the data at once and simply have the slider's callback change the limits of the axes with AXIS, XLIM, YLIM, or SET. Alternately, if that's not an option don't call PLOT each time, but use SET to update the XData and/or YData properties of the line you've already drawn. One final option is to set the BusyAction property on the slider to avoid queuing up so many invocations of the callback function." This might be a way to allow very small shifts with very fast updates, testing this with a test function now.


Roemer van der Meij - 2012-08-24 13:57:47 +0200

Created attachment 302 testing simple small-step scrolling


Roemer van der Meij - 2012-08-24 13:59:27 +0200

Hmmm, this axis updating business is pretty darn fast! Gonna try and hack some eeglab functions now, as googling 'data scrolling matlab' surprisingly brought me to eeglab. On the website it says 'high density data-scrolling', maybe they have some extra-smart stuff built-in?