| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| 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>. | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualityhyperlinks should use rst syntax (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases)
Sorry, something went wrong.
All reactions
|
||
| """ | ||
| from __future__ import print_function | ||
|
|
||
| import numpy as np | ||
| Expand Down | ||
| 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. | ||
|
|
||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI would suggest using an explicit hyperlink target (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-targets).
Sorry, something went wrong.
All reactions
|
||
| 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 | ||
| Expand Down | ||
| 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 | ||
| ============================================ | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualityblank line
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI think I resolved this?
Sorry, something went wrong.
All reactions
Comment thread
Copy link
Copy Markdown
Member
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityMissing blank line after, I think.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI think I resolved this?
Sorry, something went wrong.
All reactions
|
||
|
|
||
| This example shows a how to plot a 2D and 3D plot on the same figure. | ||
| """ | ||
|
|
||
| from mpl_toolkits.mplot3d import Axes3D | ||
| Expand Down | ||
| 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` | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualityyerr and bottom should use *foo*, not backticks (they are not references to linkable elements).
Sorry, something went wrong.
All reactions
|
||
| 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 | ||
| Expand Down | ||
| 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. | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityPatch, Path, and Transform (references to actual python names).
Sorry, something went wrong.
All reactions
|
||
| """ | ||
|
|
||
| import matplotlib.cm as cm | ||
| import matplotlib.pyplot as plt | ||
| from matplotlib.patches import Circle, PathPatch | ||
| Expand Down | ||
| 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 | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitysame comment as above regarding hyperlink syntax (either way works).
Sorry, something went wrong.
All reactions
|
||
| <a href='http://scitools.org.uk/cartopy/'>Cartopy</a> | ||
| for geographic projections. | ||
| """ | ||
|
|
||
| import matplotlib.pyplot as plt | ||
|
|
||
| plt.figure() | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitydot after "multiple backends"
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.