Re: [matplotlib-devel] fix to clabel issues plus more

2008-09-16 Thread David M. Kaplan
On Sun, Sep 14, 2008 at 10:44 AM, David M. Kaplan <[EMAIL PROTECTED]> wrote: > > > I also moved a bunch of functions having to do with numerics and > > geometry from cbook and mlab into a separate file called > > numerical_methods.py as was discussed a while back. This i

[matplotlib-devel] fix to clabel issues plus more

2008-09-14 Thread David M. Kaplan
having to do with numerics and geometry from cbook and mlab into a separate file called numerical_methods.py as was discussed a while back. This is fairly easy to undo if a problem, but this seems logical to me. Cheers, David -- ** David M. Kaplan Charge de

Re: [matplotlib-devel] error when plotting with point markers in latest SVN

2008-09-08 Thread David M. Kaplan
; File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1525, > > in draw > >a.draw(renderer) > > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 439, > > in draw > >markerFunc(renderer, gc, tpath, affine.froze

[matplotlib-devel] error when plotting with point markers in latest SVN

2008-09-08 Thread David M. Kaplan
nderer) File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 439, in draw markerFunc(renderer, gc, tpath, affine.frozen()) File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 752, in _draw_circle rgbFace) : Codes array is wrong length Ou

Re: [matplotlib-devel] problems with labeling contour lines in 0.98.3

2008-09-03 Thread David M. Kaplan
; Does anybody have a solution? > > Thanks, Mark > > > > > > > This message was sent using IMP, the Internet Messaging

[matplotlib-devel] duplicate functions?

2008-07-28 Thread David M. Kaplan
Hi, Quick question: I have noticed that there are functions in cbook that have identical or near identical versions in numpy - unique, is_scalar (isscalar), iterable, Is this intentional? Cheers, David -- ** David M. Kaplan Charge de Recherche 1

Re: [matplotlib-devel] doc warnings

2008-07-26 Thread David M. Kaplan
at to do with this. Along the way, I noticed these is some duplication in the examples directory between pylab_examples and mpl_examples. Cheers, David > JDH -- ** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Developpement Centre de Rech

Re: [matplotlib-devel] reverting changes to contour.py

2008-07-20 Thread David M. Kaplan
t; worth > with svn. Too bad we aren't using something nice like Mercurial. > Now, > that comment should push a few buttons.) > > Eric > -- ** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Developpement Centre de

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-19 Thread David M. Kaplan
fewer points rather than inadvertantly letting it happen. Cheers, David -- ********** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Developpement Centre de Recherche Halieutique Mediterraneenne et Tropicale av. Jean Monnet B.P. 171 34203 Sete cedex Fran

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-18 Thread David M. Kaplan
Hi, On Fri, 2008-07-18 at 09:24 -0500, John Hunter wrote: > On Fri, Jul 18, 2008 at 4:27 AM, David M. Kaplan <[EMAIL PROTECTED]> wrote: > I'm not a huge fan of mixins. We use them occassionally, eg for > FigureCanvasGtkAgg and their are some good uses for them, but they c

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-18 Thread David M. Kaplan
d mouse button has proved quite useful to me and the user would still need to test in this case. We could warn if not enough points are returned, but an error seems too much to me. Cheers, David -- ** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Develo

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-18 Thread David M. Kaplan
Hi, My bad - I forgot strings are iterable. This should now be fixed. Cheers, David On Fri, 2008-07-18 at 09:41 -0500, John Hunter wrote: > On Fri, Jul 18, 2008 at 3:50 AM, David M. Kaplan <[EMAIL PROTECTED]> wrote: > > >> I would probably write a cbook method is_sequenc

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-18 Thread David M. Kaplan
over interactive commands such as ginput. This may be better than an immediate error, but could cause problems later in the script when data is expected, but one gets []. Cheers, David -- ****** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour l

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-18 Thread David M. Kaplan
ntour should always be an array (at least the linecontours in a Path), so I don't see much point in forcing it to array. I have removed these and several other np.array or np.asarray calls that seemed extraneous to me. If desired, I can include a single np.array call, but I don't think

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-17 Thread David M. Kaplan
ot;manual". > I have to run. I haven't reviewed the patch very well. I think you should > address those two comments and send it again to the list for review. > You'll probably get useful advice and maybe learn more about Python. > > Thanks, > > Gaël -- **

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-17 Thread David M. Kaplan
n example ...!? > > Manuel Along these lines, I have been thinking that it would be a simple addition to allow fmt to be a dictionary (as an alternative to a string) that matches contour levels with the desired text. This would allow users to label contours with arbitrary strings, which is

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-17 Thread David M. Kaplan
s. Cheers, David On Thu, 2008-07-17 at 09:46 +0200, David M. Kaplan wrote: > Hi all, > > Thanks for the comments. My sourceforge ID is dmkaplan. Please add me > as a developer. I will commit to the trunk and try to not break things, > but I am VERY new to python and it is a poss

Re: [matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-17 Thread David M. Kaplan
need to attach the right method of one to the other. Cheers, David On Wed, 2008-07-16 at 10:10 -1000, Eric Firing wrote: > John Hunter wrote: > > On Wed, Jul 16, 2008 at 7:20 AM, David M. Kaplan <[EMAIL PROTECTED]> wrote: > > > >> The patch isn't done - manually sel

[matplotlib-devel] patch for adding manual label location selection to clabel

2008-07-16 Thread David M. Kaplan
access to my own branch of the matplotlib svn. I don't want to modify the trunk, but for my own sanity, it would be nice to be able to keep track of my changes somewhere. If not, I would like to here what other non-commit developers do to best organize changes. Thanks, David -- **

Re: [matplotlib-devel] waitforbuttonpress function addition

2008-07-11 Thread David M. Kaplan
quaux wrote: > On Fri, Jul 11, 2008 at 03:22:30PM +0200, David M. Kaplan wrote: > > The way I have implemented it is by adding an additional class > > BlockingKeyMouseInput, which is quite similar to BlockingMouseInput, but > > waits for both key and mouse events. A s

[matplotlib-devel] waitforbuttonpress function addition

2008-07-11 Thread David M. Kaplan
e=True) and hit ctrl-c). This probably isn't a huge problem, but it would be nice if there was a way to say "if ctrl-c is pressed, cleanup nicely". Does someone know if that is possible? Cheers, David -- ********** David M. Kaplan Charge de Recherche 1