Matplotlib Tutorial 7 - loading data from files

preview_player
Показать описание
Many times, people want to graph data from a file. There are many types of files, and many ways you may extract data from a file to graph it. Here, we'll show a couple of ways one might do this. First, we'll use the built-in csv module to load CSV files, then we'll show how to utilize NumPy, which is a third-party module, to load files.

Рекомендации по теме
Комментарии
Автор

Awesome lecture! Using this plots are boosting every work ive done in terms of quality. Thank you!

awesomeregularnormalguy
Автор

again and again... thank you thank you thank you for 100 times for your amazing lessons

esrabasaran
Автор

The content on this channel is first rate, and I recommend it to everyone.

MistahBushido
Автор

Hi,

I was wondering why we need to use the csv package in general, if we can do the exact same thing in Pandas ?

adithya
Автор

This is great just wish it had date and time for x. Keep them coming :)

NickFarrow
Автор

What if I want to plot only specific parts of the data?
eg - The 2nd and 5th entry in the text file?
or even like Last 3 entries of the file?

kunns
Автор

thanks for the tutorial, how do I specify more than one delimiter such as comma and space?
Thanks

tzahigeller
Автор

Thanks again for your whole channel you have helped me a lot in finding my way through python. I will thank you if you can also do a a video in which you talk about Loading data from Binary data set files, thanks.

ralphcastro
Автор

Hey thank you for these videos, they are really helpful. I have a question. I want to open multiple 3D image files using matplot as a subplot in the main plot. The files are in the same directory but inside the directory, there are separate folders with two files in each folder. Also, I want to analyze these files. I would appreciate your help.

abhinandanbatra
Автор

Hi, is there a difference in execution times between the "numpy method" and the "csvfile method"? Reason I'm asking is that I will be reading data from sensors, which will be updating a text file anywhere between 8hz to 100hz, depending on equipment used... Which method would you suggest using in such a case? Thank you in advance.

floppydisk
Автор

Thank you very much for this tutorial, helped a lot. Can this be used for a 3d plot where i have 3 lists x, y and z, whose data is read from a file...

mohammedsahique
Автор

I was just wondering if there is an excel file as a csv and different numbers in each row what would the delimeter be?

lillyclive
Автор

How can you load strings in the x axis instead of integers?

mrcrash
Автор

I know very little English, but I understand your lessons. Thank you!

abenderbey
Автор

It doesn't give me any error but always gives a blank result. I thought that it's not recognizing my .txt file so I specified the exact location (C:\users\whatever) and the plot still comes up blank with both methods.

darealtuck
Автор

hiiii, if i have many data in the same file and i want to do matplotlip for 2 data in the same figure how i can do that?
thxx

issrahassoun
Автор

First things first, thank you for this great series. It's very useful. Bur I ask myself honestly, what is the best way to read in and store data from multiple csv files in order to do further processing?

finan
Автор

hey,

Q1. what if i'm using an excel file ? what will the delimiter be ? should it even be there ?

Q2. i have time and its corresponding voltage in consecutive columns. how do i array it in a variable and if i put the time which is in (hh:mm:ss) format will the plot happen ?

+sentdex

Letseducateyou
Автор

How to specify white space ( single space or tab space) as delimiter?

alexanderin
Автор

Hey quick question, if my text file had one x axis list, but multiple y axis lists, how would you modify the numpy code (if you need to at all?). would you just have to define y1, y2, y3, y4, y5?

raviraivat