[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.

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 missed

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

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 stdin, line 1, in module 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
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 (ie data side) of a typical x-y plot. My setup is Python

[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