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

Skip to content

MEP 12: Gallery cleanup and reorganization (rebase) #1924

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

Merged
merged 36 commits into from
Apr 26, 2013
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5c4ce96
STY: Refactor string formatting/templating
tonysyu Dec 18, 2012
38fd903
Clean-up and move scatter_demo
tonysyu Dec 18, 2012
6c5c108
Cleanup and move fill_demo
tonysyu Dec 18, 2012
7926105
Cleanup and move pie_demo
tonysyu Dec 18, 2012
f5d3381
Cleanup and move errorbar_demo.
tonysyu Dec 18, 2012
848f06d
Cleanup and move fill_demo2
tonysyu Dec 18, 2012
5c7b6c4
Cleanup and move histogram_demo
tonysyu Dec 18, 2012
54eaa89
Cleanup and move hinton_demo
tonysyu Dec 18, 2012
281081b
Cleanup and move image_demo3.py
tonysyu Dec 18, 2012
8cedd21
DOC: Minor rewording
tonysyu Dec 21, 2012
3c82361
Fix doc build to search in new example sections.
tonysyu Dec 21, 2012
c4dae6f
Cleanup and move subplot_demo
tonysyu Dec 21, 2012
60c371f
Update example section titles
tonysyu Dec 21, 2012
89071ad
Cleanup and move unicode_demo
tonysyu Dec 21, 2012
89abce6
Consolidate histogram examples
tonysyu Dec 22, 2012
a4ea5f7
Cleanup and move vertical_ticklabels demo
tonysyu Dec 22, 2012
9b9cf83
Cleanup and move clippath_demo
tonysyu Dec 23, 2012
299588e
Rename imshow_demo to image_demo
tonysyu Dec 23, 2012
653e532
Cleanup and move polar_bar demo
tonysyu Dec 23, 2012
016369d
Cleanup and move polar scatter demo
tonysyu Dec 23, 2012
38fbb21
Cleanup and move text themes demo
tonysyu Dec 23, 2012
353ea06
Cleanup and move path_patch demo
tonysyu Dec 23, 2012
71060da
Clean up and move integral demo
tonysyu Dec 23, 2012
af2a2c6
Extract spines_demo_bounds from spine_placement_demo
tonysyu Dec 23, 2012
b6f2f2f
Extract spines_demo from spine_placement_demo
tonysyu Dec 23, 2012
b48c3db
Cleanup integral_demo
tonysyu Dec 23, 2012
ab080c7
Cleanup and move dash_control demo
tonysyu Dec 23, 2012
12cbf1a
Clean up and move color_cycle demo
tonysyu Dec 24, 2012
97afb7f
Tweak subplot layout to prevent label clipping
tonysyu Dec 24, 2012
8ee7460
Add colormap references based on show_colormaps
tonysyu Dec 24, 2012
8ecd20d
Clean up and move artist demo
tonysyu Dec 24, 2012
a97d058
Clean up and move streamplot demos
tonysyu Dec 24, 2012
17e3090
Combine colormap reference examples
tonysyu Dec 24, 2012
0d4ca31
Clean up and move barh_demo
tonysyu Dec 24, 2012
804b94c
STY: Combine declarations of example directories
tonysyu Dec 30, 2012
aa6b410
Fix example link
tonysyu Apr 19, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup and move path_patch demo
  • Loading branch information
tonysyu committed Apr 19, 2013
commit 353ea06013a00bcfc4cf78583c3528a87d4c52f3
2 changes: 1 addition & 1 deletion doc/users/screenshots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Path demo
You can add arbitrary paths in matplotlib as of release 0.98. See
the :mod:`matplotlib.path`.

.. plot:: mpl_examples/api/path_patch_demo.py
.. plot:: mpl_examples/shapes_and_collections/path_patch_demo.py

.. _screenshots_mplot3d_surface:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import numpy as np
"""
Demo of a PathPatch object.
"""
import matplotlib.path as mpath
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt

Path = mpath.Path

fig = plt.figure()
ax = fig.add_subplot(111)
fig, ax = plt.subplots()

pathdata = [
Path = mpath.Path
path_data = [
(Path.MOVETO, (1.58, -2.57)),
(Path.CURVE4, (0.35, -1.1)),
(Path.CURVE4, (-1.75, 2.0)),
Expand All @@ -19,18 +20,15 @@
(Path.CURVE4, (2.0, -0.5)),
(Path.CLOSEPOLY, (1.58, -2.57)),
]

codes, verts = zip(*pathdata)
codes, verts = zip(*path_data)
path = mpath.Path(verts, codes)
patch = mpatches.PathPatch(path, facecolor='red', edgecolor='yellow', alpha=0.5)
patch = mpatches.PathPatch(path, facecolor='r', alpha=0.5)
ax.add_patch(patch)

# plot control points and connecting lines
x, y = zip(*path.vertices)
line, = ax.plot(x, y, 'go-')

ax.grid()
ax.set_xlim(-3,4)
ax.set_ylim(-3,4)
ax.set_title('spline paths')
ax.axis('equal')
plt.show()


2 changes: 1 addition & 1 deletion examples/tests/backend_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
]

files['shapes'] = [
'path_patch_demo.py',
'scatter_demo.py',
]

Expand Down Expand Up @@ -267,7 +268,6 @@
'logo2.py',
'mathtext_asarray.py',
'patch_collection.py',
'path_patch_demo.py',
'quad_bezier.py',
'scatter_piecharts.py',
'span_regions.py',
Expand Down