The number of files is huge, I do not want to run this one by one per hand.
I am trying to do this with a shell script which actually prepares the
data files but I do not know how to tell matplotlib from the shell
script that the number of files is different and that it should use
different colours for different files.
I can explain this in much more detail if needed, but I wanted to hear
a first impression.
The number of files is huge, I do not want to run this one by one per hand.
I am trying to do this with a shell script which actually prepares the
data files but I do not know how to tell matplotlib from the shell
script that the number of files is different and that it should use
different colours for different files.
I can explain this in much more detail if needed, but I wanted to hear
a first impression.
The number of files is huge, I do not want to run this one by one per hand.
I am trying to do this with a shell script which actually prepares the
data files but I do not know how to tell matplotlib from the shell
script that the number of files is different and that it should use
different colours for different files.
I can explain this in much more detail if needed, but I wanted to hear
a first impression.
PS: I thought I would probably give a better example
The goal is to have all the data files plotted in a single graph
import glob
for filename in glob.glob('*.dat'):
if 'e' in set(filename): #or whatever #do something for files that have an 'e' in their name
else: #do something else
loadtxt(filename) #yada, yada, yada
scatter() #etc.
I am not a native speaker and sometimes I find it very hard to find a
keyword to look for...
that tip was excellent, thank you a lot
···
On 3 May 2011 22:27, Buchholz, Greg <gbuchholz@...3595...> wrote:
From: Pau [mailto:vim.unix@…982…]
PS: I thought I would probably give a better example
The goal is to have all the data files plotted in a single graph
import glob
for filename in glob.glob('*.dat'):
if 'e' in set(filename): #or whatever #do something for files that have an 'e' in their name
else: #do something else
loadtxt(filename) #yada, yada, yada
scatter() #etc.