Scatter file mate 93/12/2023 ![]() ![]() Please advise how to modify it to read multiple (up to 50 - 100) txt files in folder, if number of them is different every time ? G4=np.loadtxt('647.txt',delimiter=',', unpack=True)Ĭolors = ("red", "green", "blue", "black")įor data, color, group in zip(data, colors, groups):Īx.scatter(x, y, alpha=0.8, c=color, edgecolors='none', s=30, label=group) All files have the same structure: two columns with data and 'comma' as a separator:įor small number of files i have this code: import numpy as np ![]() I'm trying to create scatter plot from several txt files.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |