Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
[snip] > Are you aware that the plot method can plot the columns of > 2-D arrays? > Any kwargs apply to all the lines. When plot does this, it > makes a list of lines, not a line collection, so it is > similar to looping over a set of single plot commands. There > is no particular speed adv

Re: [Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
> -Original Message- > From: Eric Firing [mailto:[EMAIL PROTECTED] [snip] > It probably comes down to program simplicity and readability, > not speed, in your case. > > Eric Hi Eric, Thanks for this. That's essentially the decision I had reached, but I was also wondering if I'd mis

[Matplotlib-users] Line collections vs a collection of lines

2007-08-20 Thread Anthony M. Floyd
I'm trying to figure out the best way to handle the following situation: I have a wxApp that embeds a matplotlib figure in a panel. I use custom code to control adding and removing series from the axes in this figure, with some pretty fine grained control on when things get drawn, zoomed, etc. To

Re: [Matplotlib-users] problem with set in current svn HEAD

2007-08-16 Thread Anthony M. Floyd
Hi! > 0x9c5a8ac>] >>> set(gca(), xticklabels=[]) Traceback (most > recent call last): > File "", line 1, in > TypeError: set() does not take keyword arguments > > Can somebody help me understand what goes wrong here? Python (since the docs were written) now has a built-in type called 'set'.

Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Anthony M. Floyd
Hi Anthony, > legend to be at the same height as the top of the axis. How > do I go about moving the legend once I've created it? myLegend._loc=(x,y) myFigure.draw() There doesn't seem to be a .moveLegend() or equivalent method, so I always update the semi-private ._loc and on redraw. After

Re: [Matplotlib-users] Properly aligned tick labels on the inside

2007-07-13 Thread Anthony M. Floyd
t; -Original Message- > From: Anthony M. Floyd > Sent: July 12, 2007 4:37 PM > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] Properly aligned tick labels on the inside > > Hi All, > > I'm trying to plot tick labels on the inside

[Matplotlib-users] Properly aligned tick labels on the inside

2007-07-12 Thread Anthony M. Floyd
Hi All, I'm trying to plot tick labels on the inside (ie data side) of a typical x-y plot. My setup is Python 2.5.1, matplotlib 0.90.0 on WinXP. I've been able to accomplish this by adjusting the padding of the individual ticks, but it doesn't quite accomplish what I want. For example, imagine

Re: [Matplotlib-users] object canvas

2007-07-05 Thread Anthony M. Floyd
Hi Paul, > I would like to be able to use matplotlib as an object canvas, where > items on the canvas receive mouse events (enter, leave, press, > release) and the registered callback is invoked. I do this rather extensively with the wxAgg backend and wxPython widgets. Which backend/platform

[Matplotlib-users] "Pick"-ing axis labels or tick labels

2007-05-23 Thread Anthony M. Floyd
Hi All, I'm trying to respond to double-click events on axis labels and tick labels. I'm using the wxAgg backend, and matplotlib directly, not through pylab. The matplotlib panels are wrapped into a bigger program. Based on an thread between Andrea Gavana and Chris Barker back in Feb 06, I hack