[Mne_analysis] Plotting Dipole orientations with MNE 15.0

nithya nithyar89 at gmail.com
Mon Oct 30 19:58:28 EDT 2017
Search archives:

Hi

I am trying to compute and plot the orientation of the dipoles and i
have been following the tutorial.


stc_vec = apply_inverse(evoked, inverse_operator, lambda2,
                        method=method, pick_ori='vector')

The above computes fine, and gives me the stc_vec file. I am using
dSPM for method and my snr = 1.
lambda2 = 1. / snr ** 2

The previous source estimate plots on the individual brain and average
brain are all fine.

However, when i plot the stc_vec,

stc_vec.plot(hemi='rh', subjects_dir=subjects_dir,
             clim=dict(kind='value', lims=[8, 12, 15]),
             initial_time=time_max, time_unit='s')

it gives me the following error.
Traceback (most recent call last):

  File "<ipython-input-35-a9e583e7e67f>", line 3, in <module>
    initial_time=time_max, time_unit='s')

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/source_estimate.py",
line 1978, in plot
    initial_time=initial_time, time_unit=time_unit

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py",
line 2053, in plot_vector_source_estimates
    initial_time, ad_kwargs, sd_kwargs = _get_ps_kwargs(initial_time, '0.8')

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py",
line 1919, in _get_ps_kwargs
    require, surfer.__version__)

TypeError: not enough arguments for format string

Traceback (most recent call last):

  File "<ipython-input-35-a9e583e7e67f>", line 3, in <module>
    initial_time=time_max, time_unit='s')

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/source_estimate.py",
line 1978, in plot
    initial_time=initial_time, time_unit=time_unit

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py",
line 2053, in plot_vector_source_estimates
    initial_time, ad_kwargs, sd_kwargs = _get_ps_kwargs(initial_time, '0.8')

  File "/usr/share/anaconda/lib/python2.7/site-packages/mne/viz/_3d.py",
line 1919, in _get_ps_kwargs
    require, surfer.__version__)

TypeError: not enough arguments for format string

Regards

Nithya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20171030/1a81f795/attachment.html 


More information about the Mne_analysis mailing list