Skip to content

Commit 56d6a68

Browse files
committed
FIX: Fixing docs
1 parent afe9c86 commit 56d6a68

File tree

5 files changed

+144
-69
lines changed

5 files changed

+144
-69
lines changed

doc/conf.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545

4646
# General information about the project.
4747
project = u'PySurfer'
48-
copyright = u'2011-2012, Michael Waskom, Alexandre Gramfort, Scott Burns, Martin Luessi'
48+
copyright = (u'2011-2013, Michael Waskom, Alexandre Gramfort, Scott Burns, '
49+
'Martin Luessi, Eric Larson')
4950

5051
# Generate the plots for the gallery
5152
plot_gallery = True
@@ -222,5 +223,5 @@
222223
# (source start file, name, description, authors, manual section).
223224
man_pages = [
224225
('index', 'pysurfer', u'PySurfer Documentation',
225-
[u'Michael Waskom, Alexandre Gramfort, Scott Burns'], 1)
226+
[u'Michael Waskom, Alexandre Gramfort, Scott Burns, Eric Larson'], 1)
226227
]

doc/index.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ MRI and MEG data.
1010

1111
PySurfer offers both a command-line interface designed to broadly
1212
replicate Freesurfer's Tksurfer program as well as a Python library
13-
for writing scripts to efficiently explore complex datasets.
13+
for writing scripts to efficiently explore complex datasets.
1414

1515
Contents
1616
--------
1717

1818
.. toctree::
1919
:maxdepth: 2
20-
20+
2121
install
2222
examples/index.rst
2323
documentation/index.rst
@@ -33,6 +33,8 @@ Scott Burns, Harvard Med. School MGH Martinos Center
3333

3434
Martin Luessi, Harvard Med. School MGH Martinos Center
3535

36+
Eric Larson, University of Washington ILABS
37+
3638
License
3739
-------
3840

doc/sphinxext/gen_rst.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,7 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery):
186186
plt.savefig(image_file)
187187

188188
try:
189-
try:
190-
from mayavi import mlab
191-
except ImportError:
192-
from enthought.mayavi import mlab
193-
194-
e = mlab.get_engine()
195-
if len(e.scenes) > 0:
196-
mlab.savefig(image_file, size=(400, 400))
189+
brain.save_image(image_file)
197190
except:
198191
pass
199192

examples/plot_meg_inverse_solution.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"""
2323
create Brain object for visualization
2424
"""
25-
brain = Brain(subject_id, hemi, surface)
25+
brain = Brain(subject_id, hemi, surface,
26+
config_opts=dict(width=800, height=400))
2627

2728
"""
2829
read MNE dSPM inverse solution

0 commit comments

Comments
 (0)