-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
changes for MEP12/sphinx-gallery compliance #8209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# A matplotlib based game of Pong illustrating one way to write interactive | ||
# animation which are easily ported to multiple backends | ||
# pipong.py was written by Paul Ivanov <http://pirsquared.org> | ||
|
||
""" | ||
==== | ||
Pong | ||
==== | ||
|
||
A Matplotlib based game of Pong illustrating one way to write interactive | ||
animations which are easily ported to multiple backends pipong.py was written | ||
by <a href='http://pirsquared.org'>Paul Ivanov</a>. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hyperlinks should use rst syntax (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases) |
||
""" | ||
from __future__ import print_function | ||
|
||
import numpy as np | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
''' | ||
Plot of the Lorenz Attractor based on Edward Lorenz's 1963 "Deterministic | ||
Nonperiodic Flow" publication. | ||
================ | ||
Lorenz Attractor | ||
================ | ||
|
||
This is an example of plotting Edward Lorenz's 1963 "Deterministic | ||
Nonperiodic Flow" in a 3-dimensional space using mplot3d. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest using an explicit hyperlink target (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets). |
||
http://journals.ametsoc.org/doi/abs/10.1175/1520-0469%281963%29020%3C0130%3ADNF%3E2.0.CO%3B2 | ||
|
||
Note: Because this is a simple non-linear ODE, it would be more easily | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
""" | ||
Demonstrate the mixing of 2d and 3d subplots. | ||
============================================ | ||
Demonstrate the mixing of 2d and 3d subplots | ||
============================================ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. blank line There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I resolved this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing blank line after, I think. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I resolved this? |
||
|
||
This example shows a how to plot a 2D and 3D plot on the same figure. | ||
""" | ||
|
||
from mpl_toolkits.mplot3d import Axes3D | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
""" | ||
================= | ||
Stacked Bar Graph | ||
================= | ||
|
||
This is an example of creating a stacked bar plot with error bars using | ||
`plt.bar`. Note the parameters `yerr` used for error bars, and `bottom` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yerr and bottom should use |
||
to stack the women's bars on top of the men's bars. | ||
""" | ||
|
||
# a stacked bar plot with errorbars | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
""" | ||
======== | ||
Dolphins | ||
======== | ||
|
||
This example shows how to draw, and manipulate shapes given vertices and nodes | ||
using the `patches`, `path` and `transforms` classes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
""" | ||
|
||
import matplotlib.cm as cm | ||
import matplotlib.pyplot as plt | ||
from matplotlib.patches import Circle, PathPatch | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
""" | ||
====================== | ||
Geographic Projections | ||
====================== | ||
|
||
This shows 4 possible projections using subplot. | ||
Matplotlib also supports | ||
<a href='http://matplotlib.org/basemap/'>Basemaps Toolkit</a> and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comment as above regarding hyperlink syntax (either way works). |
||
<a href='http://scitools.org.uk/cartopy/'>Cartopy</a> | ||
for geographic projections. | ||
""" | ||
|
||
import matplotlib.pyplot as plt | ||
|
||
plt.figure() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dot after "multiple backends"