Matplotlib Tutorial 32 - conclusion

sentdex · Beginner ·🛠️ AI Tools & Apps ·10y ago

Key Takeaways

The video concludes the Matplotlib tutorial series by demonstrating a slightly more complex 3D wireframe and providing resources for further learning, including the Matplotlib website and Seaborn library.

Full Transcript

what is going on everybody welcome to part 32 of our matplotlib tutorial series as well as the conclusion to this updated series in this part we're going to be talking about is a slightly more complex version of the wireframe as well as kind of where to go from here as far as your understanding of matplotlib is concerned so first of all let's kind of clear up some space so basically from here all the way down to the labels I'm just going to delete to make some space now the first thing that I want us to go ahead and do is we're gonna say X comma Y comma Z equals axes 3d dot get underscore test underscore data that's just gonna give us some test data if you're curious we can also print axes 3d dot underscore underscore file underscore underscore and what that does I've shown it plenty of times before I can't remember if we did it in this series or not but that shows like the location of that file right of the file that creates this like little module so if you're ever curious about like seeing your source code somewhere that's how you can figure out where it is so now we're gonna say a x1 dot plot underscore wire frame and then you can plot the X the Y at the Z now if you have a really slow computer don't run this but I'm gonna go ahead and run it just to show you and what you should get up is a graph like this now I record in five frames a second so it's probably still looks pretty glitching to you but if you make this graphic really big you can see kind of there's like a little bit of divides here between those things but for the most part that's almost a solid graph so there are some elements that we can change here called the stride so let's close this and this and we will add our stride and see stride and our stride and see scribe we'll just make them both 5 and 5 and this will create a distance between the two elements so with 5 now it's a much you it's you know clearly there's quite the distance between these two elements and you can kind of see more of like what's where things are actually it's almost easier to see what's going on in this than the other ones everything was all like one big blob but anyway so you can do that but we're using that test data because I don't think I think most people probably don't have like the required you know data to create a wireframe like that we could talk about writing an equation or we can just use the provided equation from matplotlib also let's go ahead and get that linked to to that file so this is the link to that axes 3d so we can actually head there C Python 34 and I bring it over then you got Lib site packages Lib and then site packages that was MPL toolkits and then in there it's mat plot 3d and then AXYZ 3d with an e edit that and here's your code and then you can kind of control f get test that takes you to get test data and there you go that's the formula that's generating this code anyways if you're curious so anyways that's kind of the last thing I really wanted to show you with matplotlib now moving forward kind of you know what can we do from here there's a little early a lot of options for you there's still a lot more that matplotlib can do for you I just really didn't cover it but you can always go to matplotlib org and the first thing you should do is there's examples examples is good there's a lot of examples but you could a gallery and you can either click on this but the easiest thing to do is like full screen this and you start scrolling down and like look at the images like generally you have in your mind what you're interested in possibly doing or not maybe you're looking for something to do or something you can even like zoom in a little bit if you want to see it better anyway and then start scrolling down look for what you want kind of check out all of the options here this one's cool cuz it gives you all the colors like this is all the colors that matplotlib has that's a lot of colors oh my goodness anyway yeah so you can look at all this kind of stuff and it's just a good idea to get yourself acquainted they do update matplotlib still so there are changes that happen so keep that in mind as well so yeah there's just all this stuff that you kind of look through and see quickly visual examples of all the stuff you can do with matplotlib then here's like the matplotlib 3d stuff so version like we didn't cover the flat bars or anything so you could check those out if you wanted and then you've got like all these surface 3d things like this and such I'm just not really sure I don't really have any reason to ever need those charts so if you do check them out those that stuff also you can go to the top and just go to examples and then in here it has a bunch of other examples like animation examples and like you've got all these animations examples that are available to you and so you can take that code and kind of check it out you've got API examples so for all the api's that they have they do they have like a finance API for example and a bunch of other stuff AXYZ grid then like all this stuff like just tons of information here for you to kind of look through and see what's available with matplotlib another interesting aspect to matplotlib is Seabourn it's kind of like a add-on almost to matplotlib you can basically download Seabourn and then at like the top of your script just import Seabourn and i think that's all you actually have to do is just import the seam the import Seabourn let me just click this introduction real quick I thought I could get configuring let me just I'm just trying to get to like a really basic example I'm pretty sure all you did tend to need to do is just import Seabourn as SNS or something anyway you can kind of play around with yeah yeah so as long as you just import it I'm almost positive at will also act a lot like a stylesheet for you too but you can do a lot of really cool stuff with Seaborn too and you again and they have a gallery that you can kind of look at and scroll through and be like wow I really like that or whatever figure out what you're kind of interested in doing and then you can kind of you know copy that code basically so that marks the end of this tutorial series hopefully you guys enjoyed if you have any questions or comments please free leave them below otherwise as always thanks for watching thanks for all the support and subscriptions and until next time

Original Description

Welcome to the final Matplotlib tutorial video. Here we will wrap up the series, and show a slightly more complex 3D wireframe sample code: http://pythonprogramming.net http://hkinsley.com https://twitter.com/sentdex http://sentdex.com http://seaofbtc.com
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from sentdex · sentdex · 0 of 60

← Previous Next →
1 Matplotlib Python Tutorial Part 1: Basics and your first Graph!
Matplotlib Python Tutorial Part 1: Basics and your first Graph!
sentdex
2 Python Encryption Tutorial with PyCrypto
Python Encryption Tutorial with PyCrypto
sentdex
3 Python's Logging Function
Python's Logging Function
sentdex
4 wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
sentdex
5 wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
sentdex
6 wxPython Programming Tutorial 3: Menu Bar and Menu Button
wxPython Programming Tutorial 3: Menu Bar and Menu Button
sentdex
7 wxPython Programming Tutorial 4: Panels
wxPython Programming Tutorial 4: Panels
sentdex
8 wxPython Programming Tutorial 5: User Input Saved To Variables
wxPython Programming Tutorial 5: User Input Saved To Variables
sentdex
9 wxPython Programming Tutorial 6: Multiple Choice Input
wxPython Programming Tutorial 6: Multiple Choice Input
sentdex
10 wxPython Programming Tutorial 7: Adding Static Text and Colors
wxPython Programming Tutorial 7: Adding Static Text and Colors
sentdex
11 wxPython Programming Tutorial 8: Custom Button Images
wxPython Programming Tutorial 8: Custom Button Images
sentdex
12 wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
sentdex
13 Basic PHP Tutorial 13: Multi-dimensional Array
Basic PHP Tutorial 13: Multi-dimensional Array
sentdex
14 Basic PHP Tutorial 15: Functions and Global Variables
Basic PHP Tutorial 15: Functions and Global Variables
sentdex
15 Basic PHP Tutorial 12: Associative Array
Basic PHP Tutorial 12: Associative Array
sentdex
16 Basic PHP Tutorial 14: Foreach loop
Basic PHP Tutorial 14: Foreach loop
sentdex
17 Basic PHP Tutorial 16: Include and Require
Basic PHP Tutorial 16: Include and Require
sentdex
18 Basic PHP Tutorial 7: Assignment, comparison and Logical operators
Basic PHP Tutorial 7: Assignment, comparison and Logical operators
sentdex
19 Basic PHP Tutorial 4: Variables and Comments
Basic PHP Tutorial 4: Variables and Comments
sentdex
20 Basic PHP Tutorial 11: Arrays part 1, basic array
Basic PHP Tutorial 11: Arrays part 1, basic array
sentdex
21 Basic PHP Tutorial 6: If else and else if conditionals cont'd
Basic PHP Tutorial 6: If else and else if conditionals cont'd
sentdex
22 Basic PHP Tutorial 1: Intro to PHP
Basic PHP Tutorial 1: Intro to PHP
sentdex
23 Basic PHP Tutorial 3: HTML with PHP
Basic PHP Tutorial 3: HTML with PHP
sentdex
24 Basic PHP Tutorial 9: While Loop
Basic PHP Tutorial 9: While Loop
sentdex
25 Basic PHP Tutorial 10: Switch Statement
Basic PHP Tutorial 10: Switch Statement
sentdex
26 Basic PHP Tutorial 2: Print and Echo
Basic PHP Tutorial 2: Print and Echo
sentdex
27 Basic PHP Tutorial 5: If else and else if conditional statements
Basic PHP Tutorial 5: If else and else if conditional statements
sentdex
28 Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
sentdex
29 Basic PHP Tutorial 17: User Input Form Example / String Manipulation
Basic PHP Tutorial 17: User Input Form Example / String Manipulation
sentdex
30 Basic PHP Tutorial 18: HTML Entities and forms cont'd
Basic PHP Tutorial 18: HTML Entities and forms cont'd
sentdex
31 Basic PHP Tutorial 19: Finding words in strings
Basic PHP Tutorial 19: Finding words in strings
sentdex
32 Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
sentdex
33 Basic PHP Programming Tutorial 22: Hashing part 2: salting
Basic PHP Programming Tutorial 22: Hashing part 2: salting
sentdex
34 Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
sentdex
35 Basic PHP Programming Tutorial 21: MD5 Hashing For Security
Basic PHP Programming Tutorial 21: MD5 Hashing For Security
sentdex
36 Basic PHP Programming Tutorial 24: String similarity
Basic PHP Programming Tutorial 24: String similarity
sentdex
37 Basic PHP Programming Tutorial 25: Time and Time stamps
Basic PHP Programming Tutorial 25: Time and Time stamps
sentdex
38 Basic PHP Programming Tutorial 26: Die and Exit
Basic PHP Programming Tutorial 26: Die and Exit
sentdex
39 Basic PHP Programming Tutorial 27: MySQL Databases Part 1
Basic PHP Programming Tutorial 27: MySQL Databases Part 1
sentdex
40 Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
sentdex
41 Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
sentdex
42 Basic PHP Programming Tutorial 30: MySQL database in Use
Basic PHP Programming Tutorial 30: MySQL database in Use
sentdex
43 Django Tutorial Web Development with Python Part 1: Installing Django
Django Tutorial Web Development with Python Part 1: Installing Django
sentdex
44 Python Tutorial: File Deletion and Folder Deletion / directory deletion
Python Tutorial: File Deletion and Folder Deletion / directory deletion
sentdex
45 Python Tutorial: How to Rename Files and Move Files with Python
Python Tutorial: How to Rename Files and Move Files with Python
sentdex
46 3D Graphs in Matplotlib for Python: Basic 3D Line
3D Graphs in Matplotlib for Python: Basic 3D Line
sentdex
47 3D Plotting in Matplotlib for Python: 3D Scatter Plot
3D Plotting in Matplotlib for Python: 3D Scatter Plot
sentdex
48 3D Charts in Matplotlib for Python: Multiple datasets scatter plot
3D Charts in Matplotlib for Python: Multiple datasets scatter plot
sentdex
49 Sikuli Tutorial 1: Visually programming in python!
Sikuli Tutorial 1: Visually programming in python!
sentdex
50 Sikuli Tutorial 2: Program visually in python!
Sikuli Tutorial 2: Program visually in python!
sentdex
51 Sikuli Tutorial 3: Program visually in python!
Sikuli Tutorial 3: Program visually in python!
sentdex
52 3D Bar Charts in Python and Matplotlib
3D Bar Charts in Python and Matplotlib
sentdex
53 3D Plane wire frame Graph Chart in Python
3D Plane wire frame Graph Chart in Python
sentdex
54 Raspberry Pi Part 1 Introduction
Raspberry Pi Part 1 Introduction
sentdex
55 Raspberry Pi Part 8: First Download and Update! (Firmware)
Raspberry Pi Part 8: First Download and Update! (Firmware)
sentdex
56 Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
sentdex
57 Raspberry Pi Part 11: Remote Desktop
Raspberry Pi Part 11: Remote Desktop
sentdex
58 Twitter Analysis: How to rank a user's influence
Twitter Analysis: How to rank a user's influence
sentdex
59 GPIO Tutorial for Pi Part 2 - Programming the GPIO
GPIO Tutorial for Pi Part 2 - Programming the GPIO
sentdex
60 GPIO Tutorial for Raspberry Pi Part 1 - Setting up
GPIO Tutorial for Raspberry Pi Part 1 - Setting up
sentdex

This video concludes the Matplotlib tutorial series by demonstrating a complex 3D wireframe and providing resources for further learning. Viewers can learn how to create 3D wireframes, visualize data with Matplotlib, and use Seaborn for data visualization.

Key Takeaways
  1. Import necessary libraries
  2. Create a 3D wireframe using Matplotlib
  3. Customize the wireframe using stride and other parameters
  4. Explore the Matplotlib website for examples and documentation
  5. Use Seaborn for additional data visualization capabilities
💡 Matplotlib and Seaborn are powerful libraries for data visualization in Python, and can be used to create complex and customized visualizations.

Related AI Lessons

Up next
How to Open HPL Files (HP-GL Plotter)
File Extension Geeks
Watch →