File tree 3 files changed +12
-5
lines changed 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ in mind.
39
39
* If you have altered extension code, do you pass
40
40
unit/memleak_hawaii.py?
41
41
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.
43
46
44
47
== Importing and name spaces ==
45
48
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ include matplotlibrc.template matplotlibrc setup.cfg.template
5
5
include __init__.py setupext.py setup.py setupegg.py makeswig.py
6
6
include examples/data/*
7
7
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
8
12
include lib/matplotlib/mpl-data/images/*
9
13
include lib/matplotlib/mpl-data/fonts/ttf/*
14
+ include lib/matplotlib/mpl-data/fonts/pdfcorefonts/*
10
15
include lib/matplotlib/mpl-data/fonts/afm/*
11
16
recursive-include license LICENSE*
12
17
recursive-include examples README *.py
Original file line number Diff line number Diff line change 9
9
from matplotlib .mlab import dist_point_to_segment
10
10
11
11
12
-
13
-
14
12
class PolygonInteractor :
15
13
"""
16
14
An polygon editor.
@@ -73,7 +71,7 @@ def get_ind_under_point(self, event):
73
71
# display coords
74
72
xt , yt = self .poly .get_transform ().numerix_x_y (x , y )
75
73
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 ]
77
75
ind = indseq [0 ]
78
76
79
77
if d [ind ]>= self .epsilon :
@@ -128,6 +126,7 @@ def motion_notify_callback(self, event):
128
126
if event .inaxes is None : return
129
127
if event .button != 1 : return
130
128
x ,y = event .xdata , event .ydata
129
+
131
130
self .poly .xy [self ._ind ] = x ,y
132
131
self .line .set_data (zip (* self .poly .xy ))
133
132
@@ -160,7 +159,7 @@ def motion_notify_callback(self, event):
160
159
ax .add_patch (poly )
161
160
p = PolygonInteractor ( ax , poly )
162
161
163
- ax .add_line (p .line )
162
+ # ax.add_line(p.line)
164
163
ax .set_title ('Click and drag a point to move it' )
165
164
ax .set_xlim ((- 2 ,2 ))
166
165
ax .set_ylim ((- 2 ,2 ))
You can’t perform that action at this time.
0 commit comments