mne-tools / mne-gsoc2018-3d

Sandbox for GSoC 2018 3D Viz
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

BUG: plot_stc example #40

Open kingjr opened 5 years ago

kingjr commented 5 years ago

I run into the following bug on the plot_stc ipynb example:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-68759fb72e45> in <module>
      3                           transparent=False, alpha=1.0, time_viewer=False, subjects_dir=subjects_dir,
      4                           clim='auto', cortex='classic', size=300,
----> 5                           background="black", initial_time=0.09)

~/git/mne-gsoc2018-3d/ipysurfer/stc.py in plot_source_estimates(stc, subject, surface, hemi, colormap, time_label, smoothing_steps, transparent, alpha, time_viewer, subjects_dir, figure, views, colorbar, clim, cortex, size, background, foreground, initial_time, time_unit)
    164     # convert control points to locations in colormap
    165     ctrl_pts, lim_cmap, scale_pts, transparent = _limits_to_control_points(
--> 166         clim, stc.data.ravel(), colormap, transparent, fmt='matplotlib')
    167 
    168     if hemi in ('both', 'split'):

TypeError: _limits_to_control_points() got an unexpected keyword argument 'fmt'