Back to the main page.
Bug 3098 - noisy figure output using ft_sourceplot
Status | CLOSED WORKSFORME |
Reported | 2016-03-16 10:36:00 +0100 |
Modified | 2019-08-10 12:32:47 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P5 normal |
Assigned to: | Diego Lozano Soldevilla |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Diego Lozano Soldevilla - 2016-03-16 10:36:08 +0100
Created attachment 786 figure example Using print matlab function or the matlab figure GUI (save as). the ft_sourceplot figure output is just noise (see attachment). Choosing different figure fileformat doesn't help (pdf, eps, jpg). This is what I'm doing: cfg = []; cfg.method = 'ortho'; cfg.funparameter = 'avg.pow'; cfg.maskparameter = cfg.funparameter; cfg.opacitylim = 'maxabs'; cfg.opacitymap = 'rampup'; ft_sourceplot(cfg,sourceT1avgi); print('-dpng', 'test.png'); sourceT1avgi = freq: 9.8462 anatomy: [128x128x128 double] coordsys: 'spm' dim: [128 128 128] transform: [4x4 double] unit: 'cm' inside: [128x128x128 logical] pow: [2097152x1 double] pos: [2097152x3 double] cfg: [1x1 struct]
Diego Lozano Soldevilla - 2016-03-16 11:16:18 +0100
(In reply to Diego Lozano Soldevilla from comment #0) download from here the data I used to plot: https://www.dropbox.com/s/cd5tosfx5w8hr21/sourceT1avgi.mat?dl=0
Robert Oostenveld - 2016-03-16 12:44:26 +0100
Created attachment 787 test figure with R2015b on OS X Your figure is indeed weird. I downloaded the *.mat data and tried it myself. For me it works (with R2015b on OS X). See attached. I suspect it to be the MATLAB version on your computer. Could you try another version?
Diego Lozano Soldevilla - 2016-03-16 13:18:51 +0100
(In reply to Robert Oostenveld from comment #2) Thank you for your prompt response Robert. Surprisingly everything is right in windows 8.1 matlab 7.9.0.529 (R2009b). Then the problem could be something in my graphics card (centos7) or the matlab version installed 8.1.0.604 (R2013a). Unfortunately, I only have installed matlab R2013a in my linux machine so I'll try to figure out what's going on with my graphics
Robert Oostenveld - 2016-03-16 14:12:36 +0100
let's close this, as there is nothing to be done on the fieldtrip side.
Diego Lozano Soldevilla - 2016-03-16 15:10:43 +0100
(In reply to Robert Oostenveld from comment #4) sure