Skip to content

Commit fc1fc84

Browse files
committed
auto-migrating to sphinx gallery
1 parent e6375e0 commit fc1fc84

File tree

336 files changed

+1801
-182
lines changed

Some content is hidden

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

336 files changed

+1801
-182
lines changed

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")

examples/animation/moviewriter.py renamed to examples/animation/moviewriter_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
MovieWriter
@@ -9,7 +10,6 @@
910
interactive setting.
1011
1112
"""
12-
# -*- noplot -*-
1313

1414
import numpy as np
1515
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

examples/api/agg_oo.py renamed to examples/api/agg_oo_sgskip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
=============================
66
77
A pure OO (look Ma, no pylab!) example using the agg backend
8+
9+
810
"""
911
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
1012
from matplotlib.figure import Figure

examples/api/font_family_rc.py renamed to examples/api/font_family_rc_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
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'

examples/api/font_file.py renamed to examples/api/font_file_sgskip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
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+
12+
1113
"""
1214
import sys
1315
import os

examples/api/logos2.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""
2-
==========
3-
matplotlib
4-
==========
2+
================
3+
Matplotlib Logos
4+
================
5+
6+
Displays some matplotlib logos.
57
68
Thanks to Tony Yu <tsyu80@gmail.com> for the logo design
79
"""

examples/axes_grid1/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _axes_grid_examples:
2+
3+
Axes Grid
4+
=========

examples/axes_grid1/demo_axes_divider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
=================
3+
Demo Axes Divider
4+
=================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39

examples/axes_grid1/demo_axes_grid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
==============
3+
Demo Axes Grid
4+
==============
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import ImageGrid
39

examples/axes_grid1/demo_axes_grid2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===============
3+
Demo Axes Grid2
4+
===============
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import ImageGrid
39
import numpy as np

examples/axes_grid1/demo_axes_hbox_divider.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
======================
3+
Demo Axes Hbox Divider
4+
======================
5+
6+
"""
17
import numpy as np
28
import matplotlib.pyplot as plt
39
from mpl_toolkits.axes_grid1.axes_divider import HBoxDivider

examples/axes_grid1/demo_axes_rgb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
=============
3+
Demo Axes Rgb
4+
=============
5+
6+
"""
17
import numpy as np
28
import matplotlib.pyplot as plt
39

examples/axes_grid1/demo_colorbar_with_inset_locator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
================================
3+
Demo Colorbar With Inset Locator
4+
================================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39
from mpl_toolkits.axes_grid1.inset_locator import inset_axes

examples/axes_grid1/demo_edge_colorbar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
==================
3+
Demo Edge Colorbar
4+
==================
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import AxesGrid
39

examples/axes_grid1/demo_imagegrid_aspect.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
=====================
3+
Demo Imagegrid Aspect
4+
=====================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39
from mpl_toolkits.axes_grid1 import ImageGrid

examples/axes_grid1/inset_locator_demo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
==================
3+
Inset Locator Demo
4+
==================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39
from mpl_toolkits.axes_grid1.inset_locator import inset_axes, zoomed_inset_axes

examples/axes_grid1/inset_locator_demo2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===================
3+
Inset Locator Demo2
4+
===================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes

examples/axes_grid1/make_room_for_ylabel_using_axesgrid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===================================
3+
Make Room For Ylabel Using Axesgrid
4+
===================================
5+
6+
"""
17
from mpl_toolkits.axes_grid1 import make_axes_locatable
28
from mpl_toolkits.axes_grid1.axes_divider import make_axes_area_auto_adjustable
39

examples/axes_grid1/parasite_simple2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
================
3+
Parasite Simple2
4+
================
5+
6+
"""
17
import matplotlib.transforms as mtransforms
28
import matplotlib.pyplot as plt
39
from mpl_toolkits.axes_grid1.parasite_axes import SubplotHost

examples/axes_grid1/scatter_hist.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
============
3+
Scatter Hist
4+
============
5+
6+
"""
17
import numpy as np
28
import matplotlib.pyplot as plt
39
from mpl_toolkits.axes_grid1 import make_axes_locatable

examples/axes_grid1/simple_anchored_artists.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
=======================
3+
Simple Anchored Artists
4+
=======================
5+
6+
"""
17
import matplotlib.pyplot as plt
28

39

examples/axes_grid1/simple_axesgrid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===============
3+
Simple Axesgrid
4+
===============
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import ImageGrid
39
import numpy as np

examples/axes_grid1/simple_axesgrid2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
================
3+
Simple Axesgrid2
4+
================
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import ImageGrid
39

examples/axes_grid1/simple_axisline4.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
================
3+
Simple Axisline4
4+
================
5+
6+
"""
17
import matplotlib.pyplot as plt
28
from mpl_toolkits.axes_grid1 import host_subplot
39
import mpl_toolkits.axisartist as AA

examples/axisartist/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _axis_artist_examples:
2+
3+
Axis Artist
4+
===========

examples/axisartist/demo_axisline_style.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===================
3+
Demo Axisline Style
4+
===================
5+
6+
"""
17

28
from mpl_toolkits.axisartist.axislines import SubplotZero
39
import matplotlib.pyplot as plt

examples/axisartist/demo_curvelinear_grid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
=====================
3+
Demo Curvelinear Grid
4+
=====================
5+
26
Custom grid and ticklines.
37
48
This example demonstrates how to use GridHelperCurveLinear to define

examples/axisartist/demo_curvelinear_grid2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
======================
3+
Demo Curvelinear Grid2
4+
======================
5+
26
Custom grid and ticklines.
37
48
This example demonstrates how to use GridHelperCurveLinear to define

examples/axisartist/demo_floating_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==================
3+
Demo Floating Axes
4+
==================
5+
26
Demo of the floating axes.
37
48
This demo shows features of functions in floating_axes:

examples/axisartist/demo_floating_axis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==================
3+
Demo Floating Axis
4+
==================
5+
26
Axis within rectangular frame
37
48
The following code demonstrates how to put a floating polar curve within a

examples/axisartist/demo_parasite_axes2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
===================
3+
Demo Parasite Axes2
4+
===================
5+
26
Parasite axis demo
37
48
The following code is an example of a parasite axis. It aims to show a user how

examples/event_handling/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _event_handling_examples:
2+
3+
Event Handling
4+
==============

examples/event_handling/close_event.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===========
3+
Close Event
4+
===========
5+
6+
"""
17
from __future__ import print_function
28
import matplotlib.pyplot as plt
39

examples/event_handling/data_browser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
============
3+
Data Browser
4+
============
5+
6+
"""
17
import numpy as np
28

39

examples/event_handling/figure_axes_enter_leave.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
=======================
3+
Figure Axes Enter Leave
4+
=======================
5+
26
Illustrate the figure and axes enter and leave events by changing the
37
frame colors on enter and leave
48
"""

examples/event_handling/keypress_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
=============
3+
Keypress Demo
4+
=============
5+
26
Show how to connect to keypress events
37
"""
48
from __future__ import print_function

examples/event_handling/lasso_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==========
3+
Lasso Demo
4+
==========
5+
26
Show how to use a lasso to select a set of points and get the indices
37
of the selected points. A callback is used to change the color of the
48
selected points

examples/event_handling/legend_picking.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==============
3+
Legend Picking
4+
==============
5+
26
Enable picking on the legend to toggle the original line on and off
37
"""
48
import numpy as np

examples/event_handling/looking_glass.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
=============
3+
Looking Glass
4+
=============
5+
6+
"""
17
import numpy as np
28
import matplotlib.pyplot as plt
39
import matplotlib.patches as patches

examples/event_handling/path_editor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
===========
3+
Path Editor
4+
===========
5+
6+
"""
17
import numpy as np
28
import matplotlib.path as mpath
39
import matplotlib.patches as mpatches

0 commit comments

Comments
 (0)