From: Bernhard H. <b.h...@fz...> - 2015-12-18 15:14:30
|
Dear Gnuplot-py-user List, I have a problem I cannot quite solve, maybe somebody has a good idea? So I have a script plotting all files of one folder in one graph. I have the files already in a list "fileList": Files belong to one of 2 groups, eg: file1_apple.txt file2_apple.txt file3_apple.txt file1_pear.txt file2_pear.txt . . . I want now all files of one group to be plotted with the same symbol and color. How do I do this? It is sadly not working as I indicate it here for cur_file in fileList: group = files.split("_")[1] if group== "apple": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor = , linestyle = ) f.set_option(title=apple) plotlist_apple.append(f) if group == "pear": f = Gnuplot.File(cur_file) f.set_option(with_='points', linecolor =, linestyle = ) f.set_option(title=pear) plotlist_pear.append(f) #print plotlist g.plot(*plotlist_pear,*plotlist_apple) Also has anybody a hint how to plot that afterwards in one plot? Any help is highly appreciated! Thank you very much in advance! Best, Bernhard Hopfenmüller ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ |