Back to the main page.
Bug 2930 - Inconsistencies in plotting with recent Matlab versions (Matlab2015a) and previous versions (2012b)
Status | ASSIGNED |
Reported | 2015-07-15 13:46:00 +0200 |
Modified | 2015-07-15 17:00:44 +0200 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Jim Herring |
URL: | |
Tags: | |
Depends on: | 2461 |
Blocks: | |
See also: |
Jim Herring - 2015-07-15 13:46:13 +0200
I have noticed that in recent matlab versions some plotting functions do not behave as expected. For example, in plotting source data on top of anatomical data using ft_sourceplot (cfg.viewmode = 'ortho') the functional data is not plotted on all subplots. This issue could have to do with the change in graphics handling from Matlab2014a onwards. To inventorize where issues occur I will run the plotting test scripts on Matlab 2012b and Matlab 2015a and compare the output figures. This bug might depend on bug 2461 but it is not clear yet whether the difference in handling graphics is the only cause.
Jim Herring - 2015-07-15 14:06:32 +0200
I'll run the following test scripts to compare between matlab versions test_ft_plot_mesh;% test_ft_multiplotTFR; test_ft_movieplotTFR;% Failed on dashboard test_ft_topoplotER; test_ft_topoplotCC; test_old_ft_singleplotER; % Failed on dashboard test_old_ft_singleplotTFR;% Failed on dashboard test_old_ft_topoplotTFR;% Failed on dashboard test_old_ft_multiplotER;% Failed on dashboard test_tutorial_plotting; test_ft_plot_mesh;
Jim Herring - 2015-07-15 14:34:34 +0200
So far it seems only ft_sourceplot in ortho viewmode does not plot functional data on top of anatomical data. But perhaps there might be issues with masks in other functions as well. test_ft_topoplotER does not test for plotting masks so I will add that. test_ft_plot_mesh; % No noticable differences test_ft_multiplotTFR; % No noticable differences test_ft_movieplotTFR;% Failed on dashboard - works - no noticable differences test_ft_topoplotER;% No noticable differences test_ft_topoplotCC;% No noticable differences test_old_ft_singleplotER; % Failed on dashboard test_old_ft_singleplotTFR;% Failed on dashboard test_old_ft_topoplotTFR;% Failed on dashboard test_old_ft_multiplotER;% Failed on dashboard test_tutorial_plotting;% ft_sourceplot with mode ortho does not plot functional data in 2015a
Jim Herring - 2015-07-15 14:43:34 +0200
ft_topoplotER seems to plot highlighted channels quite fine. Problem seems to be restricted to ft_sourceplot. Let's see.
Jim Herring - 2015-07-15 16:55:48 +0200
The problem occurs after a crosshair is drawn. At the moment I cannot see the problem as the order of the graphical objects is correct: 1.line 2.line 3.line 4.functional data 5.anatomical data