This is an automated email from the git hooks/post-receive script. yoh pushed a commit to annotated tag v0.1 in repository python-mne.
commit 4fd812d54fe860ab063c0252d4e637294eeb95e5 Author: Alexandre Gramfort <[email protected]> Date: Mon Feb 14 15:48:32 2011 -0500 DOC : pretifying doc --- doc/sphinxext/gen_rst.py | 6 +++++- examples/plot_topography.py | 2 +- examples/time_frequency/README.txt | 6 ++++++ examples/{ => time_frequency}/plot_time_frequency.py | 0 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py index a923171..91cf3e6 100644 --- a/doc/sphinxext/gen_rst.py +++ b/doc/sphinxext/gen_rst.py @@ -166,7 +166,11 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery): plt.close('all') try: execfile(example_file, {'pl' : plt}) - plt.savefig(image_file) + facecolor = plt.gcf().get_facecolor() # hack to keep black bg + if facecolor == (0.0, 0.0, 0.0, 1.0): + plt.savefig(image_file, facecolor='black') + else: + plt.savefig(image_file) except: print 80*'_' print '%s is not compiling:' % fname diff --git a/examples/plot_topography.py b/examples/plot_topography.py index e38379e..2c736af 100644 --- a/examples/plot_topography.py +++ b/examples/plot_topography.py @@ -31,4 +31,4 @@ layout = Layout('Vectorview-all') plot_topo(data, layout) title = 'MNE sample data (condition : %s)' % data['evoked']['comment'] pl.figtext(0.03, 0.93, title, color='w', fontsize=18) -pl.show() \ No newline at end of file +pl.show() diff --git a/examples/time_frequency/README.txt b/examples/time_frequency/README.txt new file mode 100644 index 0000000..16050ac --- /dev/null +++ b/examples/time_frequency/README.txt @@ -0,0 +1,6 @@ + +Time-Frequency Examples +----------------------- + +Some examples of how to explore time frequency content of M/EEG data with MNE. + diff --git a/examples/plot_time_frequency.py b/examples/time_frequency/plot_time_frequency.py similarity index 100% rename from examples/plot_time_frequency.py rename to examples/time_frequency/plot_time_frequency.py -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
