Skip to content

Commit a79942e

Browse files
committed
added additional lines to MANIFEST.in
svn path=/trunk/matplotlib/; revision=4576
1 parent cf30677 commit a79942e

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CODING_GUIDE

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ in mind.
3939
* If you have altered extension code, do you pass
4040
unit/memleak_hawaii.py?
4141

42-
42+
* if you have added new files or directories, or reorganized
43+
existing ones, are the new files included in the match patterns in
44+
MANIFEST.in. This file determines what goes into the src
45+
distribution of the mpl build.
4346

4447
== Importing and name spaces ==
4548

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ include matplotlibrc.template matplotlibrc setup.cfg.template
55
include __init__.py setupext.py setup.py setupegg.py makeswig.py
66
include examples/data/*
77
include lib/matplotlib/toolkits
8+
include lib/matplotlib/mpl-data/matplotlib.conf
9+
include lib/matplotlib/mpl-data/matplotlib.conf.template
10+
include lib/matplotlib/mpl-data/lineprops.glade
11+
include lib/matplotlib/mpl-data/matplotlibrc
812
include lib/matplotlib/mpl-data/images/*
913
include lib/matplotlib/mpl-data/fonts/ttf/*
14+
include lib/matplotlib/mpl-data/fonts/pdfcorefonts/*
1015
include lib/matplotlib/mpl-data/fonts/afm/*
1116
recursive-include license LICENSE*
1217
recursive-include examples README *.py

examples/poly_editor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
from matplotlib.mlab import dist_point_to_segment
1010

1111

12-
13-
1412
class PolygonInteractor:
1513
"""
1614
An polygon editor.
@@ -73,7 +71,7 @@ def get_ind_under_point(self, event):
7371
# display coords
7472
xt, yt = self.poly.get_transform().numerix_x_y(x, y)
7573
d = sqrt((xt-event.x)**2 + (yt-event.y)**2)
76-
indseq = nonzero(equal(d, amin(d)))
74+
indseq = nonzero(equal(d, amin(d)))[0]
7775
ind = indseq[0]
7876

7977
if d[ind]>=self.epsilon:
@@ -128,6 +126,7 @@ def motion_notify_callback(self, event):
128126
if event.inaxes is None: return
129127
if event.button != 1: return
130128
x,y = event.xdata, event.ydata
129+
131130
self.poly.xy[self._ind] = x,y
132131
self.line.set_data(zip(*self.poly.xy))
133132

@@ -160,7 +159,7 @@ def motion_notify_callback(self, event):
160159
ax.add_patch(poly)
161160
p = PolygonInteractor( ax, poly)
162161

163-
ax.add_line(p.line)
162+
#ax.add_line(p.line)
164163
ax.set_title('Click and drag a point to move it')
165164
ax.set_xlim((-2,2))
166165
ax.set_ylim((-2,2))

0 commit comments

Comments
 (0)