Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9b1468

Browse files
authored
Merge pull request #8472 from choldgraf/sg_event_handling
migrate examples to sphinx-gallery
2 parents d1947ce + d9268bd commit d9b1468

338 files changed

Lines changed: 1953 additions & 259 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/api/animation_api.rst

Lines changed: 1 addition & 1 deletion

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
# Sphinx gallery configuration
108108
sphinx_gallery_conf = {
109109
'examples_dirs': '../examples',
110-
'filename_pattern': '\.py$',
110+
'filename_pattern': '^((?!sgskip).)*$',
111111
'gallery_dirs': 'gallery'}
112112

113113
plot_gallery = True

examples/README.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Gallery
44
=======
55

6-
Click on any image to see full size image and source code.
6+
This gallery contains examples of the many things you can do with
7+
Matplotlib. Click on any image to see the full image and source code.
78

89
.. contents::

examples/animation/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _animation_examples:
2+
3+
Animation Examples
4+
==================

examples/animation/basic_example_writer.py renamed to examples/animation/basic_example_writer_sgskip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- noplot -*-
12
"""
23
===================
34
Saving an animation
@@ -8,7 +9,6 @@
89
MovieWriter instance.
910
"""
1011

11-
# -*- noplot -*-
1212
import numpy as np
1313
import matplotlib
1414
matplotlib.use("Agg")
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# -*- noplot -*-
12
"""
3+
.. _animation-moviewriter:
4+
25
===========
36
MovieWriter
47
===========
@@ -9,7 +12,6 @@
912
interactive setting.
1013
1114
"""
12-
# -*- noplot -*-
1315

1416
import numpy as np
1517
import matplotlib

examples/animation/simple_anim.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
===========
3+
Simple Anim
4+
===========
5+
26
A simple example of an animated plot
37
"""
48
import numpy as np
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# -*- noplot -*-
22
"""
3+
.. _api-agg_oo:
4+
35
=============================
46
The object-oriented interface
57
=============================
68
79
A pure OO (look Ma, no pylab!) example using the agg backend
10+
811
"""
912
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
1013
from matplotlib.figure import Figure
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- noplot -*-
12
"""
23
===========================
34
Configuring the font family
@@ -20,7 +21,6 @@
2021
2122
"""
2223

23-
# -*- noplot -*-
2424

2525
from matplotlib import rcParams
2626
rcParams['font.family'] = 'sans-serif'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
ttf file for a font instance, you can do so using the
99
font_manager.FontProperties fname argument (for a more flexible
1010
solution, see the font_family_rc.py and fonts_demo.py examples).
11+
1112
"""
1213
import sys
1314
import os

0 commit comments

Comments
 (0)