Back to the main page.

Bug 1911 - ft_movieplotER called from within ft_databrowser does not open in new figure

Status CLOSED FIXED
Reported 2012-12-21 11:58:00 +0100
Modified 2015-07-15 13:27:07 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jim Herring
URL:
Tags:
Depends on:
Blocks:
See also:

Jim Herring - 2012-12-21 11:58:12 +0100

When ft_movieplotER is called within ft_databrowser by right-clicking on a segment of data and selecting ft_movieplotER the movieplot is opened in the ft_databrowser window. Only a quarter of the topoplot is visible in this case. I have only experienced this problem in Windows. I will add a test script+data.


Roemer van der Meij - 2012-12-21 15:44:05 +0100

Hmmm, that is odd (works for me). The subfunction browse_movieplotER opens a figure window with zbuffer as a renderer, which is what I guess fails on a/your windows machine. Zbuffer should work for both platforms I guess though. I usually use zbuffer because my machines have to many opengl issues, but I don't see a reason why this is the default for browse_movieplot. Maybe it has to do something with speed of movie-plotting. Jorn, as our movieplot expert, any thoughts on this?


Diego Lozano Soldevilla - 2013-02-13 14:01:26 +0100

jim knows how this is caused. proposed solution, something like: if ispc wait 100ms continue with further plot opening end


Jim Herring - 2013-02-15 17:02:26 +0100

It turns out that the wrong function was called on Windows. Selecting movieplotER from the context-menu should call private/browse_movieplotER (which is a wrapper that creates a new figure and calls ft_movieplotER). However, in my case it was calling compat/movieplotER (a compatibility wrapper which does not create a new window). The problem was the following line in 'iscompatwrapper': "b = strcmp(x(1:end-numel(funcname)-2), [ftPath 'compat/']);" Obviously the file seperator "/" is used which is wrong on windows pc's. This prevented ft_getuserfun from seeing that compat/movieplotER was a compatibility wrapper and ft_databrowser therefore called the wrong function. I will change the line of code to: "b = strcmp(x(1:end-numel(funcname)-2), [ftPath 'compat' filesep]);"


Jim Herring - 2013-02-15 17:12:12 +0100

see previous comment - committed in rev. 7482 - private/iscompatwrapper.m