Matplotlib Beginners Tutorial - loading Data from Text or CSV file | matplotlib

preview_player
Показать описание
In this video we will talk about how to load data from text or CSV file and using it in matplotlib.

Important Links:
#Python
#Matplotlib
#Read_CSV_file
Рекомендации по теме
Комментарии
Автор

How difficult would it be to open a csv file, and loop thru each column, and if it's the desired column, then plot it?

I was thinking something like
# for each column loop:
# axIdx = ax1.twinx()
# axIdx.plot(time,
# axIdx.legend(loc='upper right', ncol=2, borderaxespad=0)
# axIdx++

where axIdx would have to be a variable that is being generated as it processes the file? Similarly, the color label and position where to put that data's legend (XXXX/YYYY) would need to be variables based on the column being processed, and the number of items already plotted?

Or thoughts on how one might solve this kind of plot?

bennguyen
welcome to shbcf.ru