Creating our First Scatter Plot is a free tutorial by Mammoth Interactive from Python course
Link to this course(Special Discount):
https://www.udemy.com/course/pythonma...
This is the best Python Course
Course summary:
Code in the web's most popular programming language: Python
Create basic line and scatter plots with Matplotlib 1.5
Read finance data directly from Yahoo
Customise our graphs with visuals, a title, labels, text and a legend
Organize data into histograms, pie charts, and box and whisker plots
Perform calculations, functions and statistics with NumPy
And so much more in this massive life-changing course
English [Auto]
Everyone and welcome in this it's for real. We're going to look at Scouter clocks and we're going to see how we can create. It's got our thoughts. We're also going to learn how we can visualize plots. And finally we're going to look at how we can change the attributes of our scout a lots of for example changing the color of her data points or Also changing the markers that we use. Hey everyone. OK. So let's get started in with making our first plot with my potluck. So the first thing that we're going to need to do to be able to use Map floodlit is we're going to need to import it. So in our Python environment we're going to type an import map plot them. So this allows us to import them upload the package and specifically right now we want to use the pipe plot section of the map plot loop so we want to import map plot lead dog hide plot and since matplotlib dot plot is quite a long name we're going to abbreviate it in our code as TLT. So this is the kind of standard form of importing. And so we're importing the map Clodd lip Pipelet and or library and we're going to import it SPL too so that when we want to reference the data later on where we want when we want to reference the map plot lived up high plot we only have to type in GLT rather than the whole map plot lived up hopla. OK so let's get started. The first thing that we're going to need for plotting is we're actually going to need some data to plot. So what we're going to do is we're just going to create some linear kind of data. So we're just going to create numbers between negative 100 and a hundred and we're just going to store these two lists for x and y data and then we'll just plot them against each other. So we're going to create a variable x which is going to be an empty list and we're going to create a variable Y which is also going to be an empty list and these are going to hold our x and y data respectively. So to just kind of create our data we're going to use a for loop. So we're going to go for pi which is going to be your temporary variable. We're to go in range and we're going to start at negative 100 and we're going to go up to 101 because our upper limit if we remember is up to but not including. So if we stop our range at one hundred and one that means the final number that we're actually going to get is going to be 100. And if we're not adding any other parameters here that just means we'll go in steps of 1. Now what we're going to do inside this for loop is we're going to go into X and we're just scared to go in here and say tend to X we're just going to append. And we're going to do the same thing for Y's son why we're going to go why not a pen and just like this. Now what this is going to give us this is going to give us lists that are going to look like this. So if I just put a comment here or X is eventually going to look like negative 100 negative 99 negative ninety eight and so on and then we go all the way and we got 99 and then 100. So that's how we're going to look like. And our wireless is going to be very similar because we're just adding We're just pretty much doing the same thing. But here to X and here to Y. So we're also going to see negative 100 then negative 9:9 negative 98 and so on until we get up to 99 and 100. So we're going to have all the numbers between negative 100 to 100 insteps of one. And this is where x and y lists are going to look like they're pretty much identical. They're just stored in two different variables and this is just kind of for reference for us to that you know how we should plot it. OK so let's go ahead and make our first pot. Now our first plot is going to be a scout plot. So how would we go about that. Well what's really great with matplotlib is that a lot of the kind of initiating figures years and all that stuff is taken care of behind the scenes. So unless you want to make really intricate graphs which we can look at later to we don't actually need to start declaring figures and all that stuff. We just need to say what we want to play. All right. So let's go ahead and get started with that. So what we don't want to do is we want to go to map
On this page of the site you can watch the video online Creating our First Scatter Plot - Python Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Rachelle Galina 03 November 2020, share the link with friends and acquaintances, this video has already been watched 6 times on youtube and it was liked by 0 viewers. Enjoy your viewing!