Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spherical coordformat dipoles are plotted incorrectly #5

Open
jiversen opened this issue Sep 13, 2022 · 1 comment
Open

Spherical coordformat dipoles are plotted incorrectly #5

jiversen opened this issue Sep 13, 2022 · 1 comment

Comments

@jiversen
Copy link

Spherical coordinate dipoles were not plotted correctly on the dipplot panels, e.g. faces_4.set

the call to dipplot currently uses hardcoded 'MNI' coordformat

Instead, take coordformat from EEG.dipfit.coordformat

@jiversen
Copy link
Author

jiversen commented Sep 13, 2022

Insert after line 404 of pop_plot_extended.m

% recover coordformat from EEG.dipfit
            coordformat = EEG.dipfit.coordformat;
            if isempty(coordformat)
                coordformat = 'MNI';
            end

change the call to dipplot to use coordformat variable

  ```

dipplot(EEG.dipfit.model(chanorcomp), ...
'meshdata', meshdatapath, ...
'mri', mripath, ...
'normlen', 'on', 'coordformat', coordformat, 'axistight', 'on', 'gui', 'off', 'view', [0 0 1], 'pointout', 'on');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant