Geographical Plotting with Python Part 5 - Improving the plots
Skills:
AI Pair Programming90%
Key Takeaways
Improving geographical plots with Python using Matplotlib and Basemap
Full Transcript
what is going on everybody welcome to another Matt plot lid slash basemap slash geographical plotting within Python where we left off we were plotting some dots on this blue United States here we got a Houston Boulder going on red Houston green Boulder cool stuff so anyway well what I was talking about last time was you know what if you want to customize the plot itself a little bit well there's a few things you can do right out of the gate one you can change the size so we can do like marker size equals 20 for this one and then let's make this one's marker can't do anything we can do marker size equals 15 okay so we can save that we can run that and now you can see that you got a big Houston dot and pretty big boulder but not as big as the Houston dot that's cool but let's do let's take this just as a really quick example and then do like 28 right I assume those will run over each other so let's run this real quick yeah and what if this one is a green actually and we'll plot that so what shows up here is just whoever got plotted last right so that's maybe not necessarily what you want right because you could have in theory dots run over each other and you would lose some some of your data possibly if that was an issue but again the size of the dot obviously it's not changing so like when we zoom in to just that spot that's not our problem anymore right but let's say it is it's becoming an issue for you or you do want them to run over a little bit like if you let them run over a little bit it kind of helps the transition of color so for example what we can do is throw an alpha here which kind of makes things see-through so we can say alpha point five and then we'll just apply this to both to all of these actually hey I'll run that and maybe I was a too much of an alpha but you get the idea now they're actually kind of clear so when they do overlap each other it's not such a big deal so finally the last thing I'm going to show you guys is you know how you would actually expand this because you always want to be able to expand you could instead have a flat equal and array lon equal an array and or actually and Python these are actually lists but anyway you can do that and actually well here's what we'll do we'll get rid of this this yes and we'll do that and then like lat two on two equals and actually I will just get rid of these brackets there's not really too much need for them it's not going to make this list too long so and stay well we could say is that is like thirty thirty one thirty four thirty three thirty thirty two so only that this one longitude sorry for the Skype message use thirty you arrows I 94 let's say negative one oh three negative 110 negative 107 negative that wasn't a negative 111 and negative 150 okay now then we're going to basically the same thing here I'm just going to copy and paste these variables switch them up we'll make these off a couple these forty this one's a 33 this one's going to be a 31 this won't be a 30 this one will be a 113 100 here 102 here and a 112 there okay now I will do that lawn that's fine and then this will be too too should work just so you can kind of get an idea how you would build like an array and then you could plot that stuff up like that right just to kind of give you an idea you can build arrays basically and have different varied data you've got green data and red data so to speak so you comply like you know employee versus unemployed you could plot wages you could plot all kinds of stuff or you could plus sentiment that's a great idea anyway that's going to conclude my basic geo plotting tutorials hopefully you guys have enjoyed and have some cool uses for that if you do happen to make something cool like me there I wouldn't mind seeing what you guys make with these geo plotting tutorials there's something else you guys would like to see feel free to let me know sometimes I'm able to just kind of add on to the series so if there's something that you request and I can do it pretty quickly or easily or whatever I'll just do it in in some cases I might have left something out so anyway hopefully that was helpful to you guys as always thanks for watching thanks for supporting subscriptions and until next time
Original Description
Playlist: http://www.youtube.com/watch?v=kZmYEfTv_WY&feature=share&list=PLQVvvaa0QuDfpEcGUM6ogsbrlWtqpS5-1&index=26
Sample code: http://pythonprogramming.net/basemap-python-plotting-tutorial-part-5/
In this Python programming tutorial with Matplotlib and Basemap we cover how to adjust the marker size and the alpha of our coordinate plots
In this series, you are taught how to plot on a map and do geographical plotting with the matplotlib extension called basemap.
Sentdex.com
Facebook.com/sentdex
Twitter.com/sentdex
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Matplotlib Python Tutorial Part 1: Basics and your first Graph!
sentdex
Python Encryption Tutorial with PyCrypto
sentdex
Python's Logging Function
sentdex
wxPython Tutorials 1: Making Windows GUIs with Python : Installing + 1st window!
sentdex
wxPython Tutorials 2: Making Windows GUIs with Python: Customizing Window Parameters
sentdex
wxPython Programming Tutorial 3: Menu Bar and Menu Button
sentdex
wxPython Programming Tutorial 4: Panels
sentdex
wxPython Programming Tutorial 5: User Input Saved To Variables
sentdex
wxPython Programming Tutorial 6: Multiple Choice Input
sentdex
wxPython Programming Tutorial 7: Adding Static Text and Colors
sentdex
wxPython Programming Tutorial 8: Custom Button Images
sentdex
wxPython Programming Tutorial 9: Tool Bar Items and Sub Menus!
sentdex
Basic PHP Tutorial 13: Multi-dimensional Array
sentdex
Basic PHP Tutorial 15: Functions and Global Variables
sentdex
Basic PHP Tutorial 12: Associative Array
sentdex
Basic PHP Tutorial 14: Foreach loop
sentdex
Basic PHP Tutorial 16: Include and Require
sentdex
Basic PHP Tutorial 7: Assignment, comparison and Logical operators
sentdex
Basic PHP Tutorial 4: Variables and Comments
sentdex
Basic PHP Tutorial 11: Arrays part 1, basic array
sentdex
Basic PHP Tutorial 6: If else and else if conditionals cont'd
sentdex
Basic PHP Tutorial 1: Intro to PHP
sentdex
Basic PHP Tutorial 3: HTML with PHP
sentdex
Basic PHP Tutorial 9: While Loop
sentdex
Basic PHP Tutorial 10: Switch Statement
sentdex
Basic PHP Tutorial 2: Print and Echo
sentdex
Basic PHP Tutorial 5: If else and else if conditional statements
sentdex
Basic PHP Tutorial 8: Arithmatic Operators: Doing math with php
sentdex
Basic PHP Tutorial 17: User Input Form Example / String Manipulation
sentdex
Basic PHP Tutorial 18: HTML Entities and forms cont'd
sentdex
Basic PHP Tutorial 19: Finding words in strings
sentdex
Basic PHP Programming Tutorial 20: Saving to a File / writing and appending
sentdex
Basic PHP Programming Tutorial 22: Hashing part 2: salting
sentdex
Basic PHP Programming Tutorial 23: Variables in Strings and tokenizing
sentdex
Basic PHP Programming Tutorial 21: MD5 Hashing For Security
sentdex
Basic PHP Programming Tutorial 24: String similarity
sentdex
Basic PHP Programming Tutorial 25: Time and Time stamps
sentdex
Basic PHP Programming Tutorial 26: Die and Exit
sentdex
Basic PHP Programming Tutorial 27: MySQL Databases Part 1
sentdex
Basic PHP Programming Tutorial 28: MySQL Database Part 2: Reading From Database
sentdex
Basic PHP Programming Tutorial 29: MySQL Database Part 3: Inputting Data
sentdex
Basic PHP Programming Tutorial 30: MySQL database in Use
sentdex
Django Tutorial Web Development with Python Part 1: Installing Django
sentdex
Python Tutorial: File Deletion and Folder Deletion / directory deletion
sentdex
Python Tutorial: How to Rename Files and Move Files with Python
sentdex
3D Graphs in Matplotlib for Python: Basic 3D Line
sentdex
3D Plotting in Matplotlib for Python: 3D Scatter Plot
sentdex
3D Charts in Matplotlib for Python: Multiple datasets scatter plot
sentdex
Sikuli Tutorial 1: Visually programming in python!
sentdex
Sikuli Tutorial 2: Program visually in python!
sentdex
Sikuli Tutorial 3: Program visually in python!
sentdex
3D Bar Charts in Python and Matplotlib
sentdex
3D Plane wire frame Graph Chart in Python
sentdex
Raspberry Pi Part 1 Introduction
sentdex
Raspberry Pi Part 8: First Download and Update! (Firmware)
sentdex
Raspberry Pi Part 10: How to set up a Linux Web Server on your Pi
sentdex
Raspberry Pi Part 11: Remote Desktop
sentdex
Twitter Analysis: How to rank a user's influence
sentdex
GPIO Tutorial for Pi Part 2 - Programming the GPIO
sentdex
GPIO Tutorial for Raspberry Pi Part 1 - Setting up
sentdex
More on: AI Pair Programming
View skill →
🎓
Tutor Explanation
DeepCamp AI