 Good afternoon evening and everything in between as you can tell what we're going to be talking about today is map plot live The entire idea is that we take all of the numbers and analysis and data that we are getting When we're using Python or we're doing data analytics with comma separated values or we're creating formulas with numpies curve fitting models The problem is with all of that we get lost in something. I like to call the sea of data You know, all of these numbers are all over our screen, you know If we're using some type of spreadsheet software like Excel or Google Sheets it's just numbers and We get something I consider Analysis paralysis like we just there's so much going on all of these different numbers It's very difficult to see like when there's you know insights. We can't really make any insights It's almost as if we're looking over a vast ocean So that's where we want to bring in some idea of Visualizations charts these are aspects that take that data in and Present it in a way that our human brains can operate You know, you always hear the saying that humans are visual creatures And it's true if I can take for example a pie chart and if I've color You know, I take pie chart and I create sort of a little slice if you will where It's red in three quarters. I can understand it's in three quarters There's a 75% of the data is represented here and 25% is represented Here think that imagine that's a pizza slice So how do I do that inside of Python? Well, the de facto option typically is through something known as matplotlib now There are others out there like seaborn and I think plotly is another one But matplotlib is typically the you know, just standard addition. This is the way to plot data using Python So if we take a look at this if we were to pull up our spider in this case We're going to be operating very similarly to how we were working with numpy So I'll come in and I'll make myself an import statement matplotlib But I'm not just going to say matplotlib and it's not I'm going to create the alias I will in just a moment But we're looking at a very specific part, you know There's a lot with the matplotlib library And so what we're actually going to zero in on and focus on is something known as pipe plots As you can see there's two separate Options here that spider happens to be telling me, you know, I could also be using pi lab For our sake, we're using pipe plot now That's a lot to be typing in and you're not going to want to do that as you're doing visualizations So one of the things you'll most commonly see out there in the world is It gets shortened out to PLT now with that in mind I've already sort of created the data for what would be represented on my x-axis and also on my y-axis So how do I go about? Creating my visualization. Well, it's actually super simple You start with your PLT just like with numpy if I want to use numpy's functions and formulas I'd have to call it But specifically you can see it's already starting to present me with a number of them the most simplistic one plot plot basically is going to create a line chart based on some x-axis and some y-axis so if I come in here with x comma y and save We hit play what do you happen to know? It shows up now Depending on what software you're using you may not be using spider and if you were to run Just this example right now It would not show anything and the reason why is what again spider is being generous to us But you may happen to need to do PLT dot show typically I like to add PLT dot show because I don't always use spider I use other pro programs as well and so It's not going to break your your program to add it in as you can see if I added it It ran the exact same way now with this one of the things that you'll you'll have to explore and learn about is what Matplot lib can offer now if I wanted to just take this as is that's fine That's one way to do things, but maybe I want to create some I want to customize my visualization well, that's where we can start adding in more Parameters and we these are keyword parameters. So say for example, I came in and Used the keyword parameter color right now my color is blue But if I came in and said color equal red What do you happen to know? Now my line happens to be red awesome fantastic and we can continue with this There's obviously more of these options. I believe it's line with that's One of the things you have to think about is it line with it happens to be line with congratulations Look at my line now. It actually is ginormous. It literally just looks like two lines and I going together Now here is another option. So if say for example, I'm gonna just Comment this out for a second. I could also do what is known as a scatter plot diagram PLT Scatter the same thing Yes, you might happen to be noticing that there's a lot of information going on here as well One of the things that you have to kind of take note of and this is where like I was saying you'll you'll you'll definitely have to hop on the Matplot lib documentation website Because just tons of different little subtle nuances that even I forget sometimes But if I want to make that same xy Graph and I'll just stop right there If we look at that and we hit run We see same kind of model, but instead of those data points being connected in a line They are now in a scatter plot But I kept on talking about those parameters and you know, oh, well, I can do those same ones, right? Oh, well that is kind of the same but a little different and the way I want you to think about this is if I came back Let me remove that If you take a look at all of those different options that you're seeing with scat You know s for example, what does s mean? well, you have to look up some of these because Depending on what visual you're going with you may have to change things in our case I'm still going to use the x and y data points that we've been talking about But let's just see what size. Well, I just gave it away. Didn't I s means size? So if I came in and just said 50 Well, let me increase that to say Let me just say 500 If I increase s to 500 in my case on spider you can see that it's increasing the actual Well, they would call marker size, but there's tons of others again the same thing just I could also use the C parameter the C parameter happens to be Very similar to color. It lets me change it to red and I can also use something called Believe it's MS. So MS equals 5000 let's see what happens No, it's actually going to air and that's perfectly fine. So The reason why I I did that I presented that up is like I said, you're gonna want to use and just let me pull it up for you You're gonna want to become very familiar with the matte plot lib documentation the entire idea is there's a lot of Little subtle tweaks and nuances that you're going to need to learn and I'm not gonna spend videos talking about Oh, this is how you increase The the line make a line around your markers There are tons of those available and best example would be under their Tutorials under pie plot tutorial. It goes through the exact same thing You can see it will expand out all of your information It's going to show you all the different subtle nuances of how to create green triangles and blue squares or red lines And you can expand on this as is