Revision: 4576
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4576&view=rev
Author:   jdh2358
Date:     2007-12-04 06:38:48 -0800 (Tue, 04 Dec 2007)

Log Message:
-----------
added additional lines to MANIFEST.in

Modified Paths:
--------------
    trunk/matplotlib/CODING_GUIDE
    trunk/matplotlib/MANIFEST.in
    trunk/matplotlib/examples/poly_editor.py

Modified: trunk/matplotlib/CODING_GUIDE
===================================================================
--- trunk/matplotlib/CODING_GUIDE       2007-12-04 13:12:09 UTC (rev 4575)
+++ trunk/matplotlib/CODING_GUIDE       2007-12-04 14:38:48 UTC (rev 4576)
@@ -39,8 +39,11 @@
   * If you have altered extension code, do you pass
     unit/memleak_hawaii.py?
 
+  * if you have added new files or directories, or reorganized
+    existing ones, are the new files included in the match patterns in
+    MANIFEST.in.  This file determines what goes into the src
+    distribution of the mpl build.
 
-
 == Importing and name spaces ==
 
 For numpy, use:

Modified: trunk/matplotlib/MANIFEST.in
===================================================================
--- trunk/matplotlib/MANIFEST.in        2007-12-04 13:12:09 UTC (rev 4575)
+++ trunk/matplotlib/MANIFEST.in        2007-12-04 14:38:48 UTC (rev 4576)
@@ -5,8 +5,13 @@
 include __init__.py setupext.py setup.py setupegg.py makeswig.py
 include examples/data/*
 include lib/matplotlib/toolkits
+include lib/matplotlib/mpl-data/matplotlib.conf
+include lib/matplotlib/mpl-data/matplotlib.conf.template
+include lib/matplotlib/mpl-data/lineprops.glade
+include lib/matplotlib/mpl-data/matplotlibrc
 include lib/matplotlib/mpl-data/images/*
 include lib/matplotlib/mpl-data/fonts/ttf/*
+include lib/matplotlib/mpl-data/fonts/pdfcorefonts/*
 include lib/matplotlib/mpl-data/fonts/afm/*
 recursive-include license LICENSE*
 recursive-include examples README *.py

Modified: trunk/matplotlib/examples/poly_editor.py
===================================================================
--- trunk/matplotlib/examples/poly_editor.py    2007-12-04 13:12:09 UTC (rev 
4575)
+++ trunk/matplotlib/examples/poly_editor.py    2007-12-04 14:38:48 UTC (rev 
4576)
@@ -9,8 +9,6 @@
 from matplotlib.mlab import dist_point_to_segment
 
 
-
-
 class PolygonInteractor:
     """
     An polygon editor.
@@ -73,7 +71,7 @@
         # display coords
         xt, yt = self.poly.get_transform().numerix_x_y(x, y)
         d = sqrt((xt-event.x)**2 + (yt-event.y)**2)
-        indseq = nonzero(equal(d, amin(d)))
+        indseq = nonzero(equal(d, amin(d)))[0]
         ind = indseq[0]
 
         if d[ind]>=self.epsilon:
@@ -128,6 +126,7 @@
         if event.inaxes is None: return
         if event.button != 1: return
         x,y = event.xdata, event.ydata
+
         self.poly.xy[self._ind] = x,y
         self.line.set_data(zip(*self.poly.xy))
 
@@ -160,7 +159,7 @@
 ax.add_patch(poly)
 p = PolygonInteractor( ax, poly)
 
-ax.add_line(p.line)
+#ax.add_line(p.line)
 ax.set_title('Click and drag a point to move it')
 ax.set_xlim((-2,2))
 ax.set_ylim((-2,2))


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to