File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ include matplotlibrc.template matplotlibrc setup.cfg.template
55include __init__.py setupext.py setup.py setupegg.py makeswig.py
66include examples/data/*
77include 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
812include lib/matplotlib/mpl-data/images/*
913include lib/matplotlib/mpl-data/fonts/ttf/*
14+ include lib/matplotlib/mpl-data/fonts/pdfcorefonts/*
1015include lib/matplotlib/mpl-data/fonts/afm/*
1116recursive-include license LICENSE*
1217recursive-include examples README *.py
Original file line number Diff line number Diff line change 99from matplotlib .mlab import dist_point_to_segment
1010
1111
12-
13-
1412class 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):
160159ax .add_patch (poly )
161160p = PolygonInteractor ( ax , poly )
162161
163- ax .add_line (p .line )
162+ # ax.add_line(p.line)
164163ax .set_title ('Click and drag a point to move it' )
165164ax .set_xlim ((- 2 ,2 ))
166165ax .set_ylim ((- 2 ,2 ))
You can’t perform that action at this time.
0 commit comments