Re: Plotting multiple datasets with gnuplot

2009-10-12 Thread Snorri H
On Oct 9, 1:36 pm, Rob Garrett wrote: > Hi, > I'm trying to get gnuplot to display multiple data series on a single > plot using gnuplot in python. I've searched around and haven't found > a solution to how to do this when I have a variable-length list of > plots to add. > What module are you us

Re: How to walk up parent directories?

2009-05-04 Thread Snorri H
On May 4, 5:04 am, Matthew Wilson wrote: > Is there already a tool in the standard library to let me walk up from a > subdirectory to the top of my file system? Never seen such a standard tool, yet it can be implemented in a way like this def walkup(path): aux = path.rsplit('/') while a

Re: yet another list comprehension question

2009-05-04 Thread Snorri H
On May 3, 6:13 am, Ross wrote: > I'm trying to set up a simple filter using a list comprehension. If I > have a list of tuples, a = [(1,2), (3,4), (5,None), (6,7), (8, None)] > and I wanted to filter out all tuples containing None, I would like to > get the new list b = [(1,2), (3,4),(6,7)]. > > I