
Lecture Description
In this Matplotlib tutorial, we're going to be going over custom legends. We've covered the basics of adding a legend already.
The main issue with legends is typically that the legend gets in the way of data. There are a few options here. One option is to put the legend outside of the axis, but we have multiple subplots here and that would be pretty difficult. Instead, we'll make the legend a bit smaller, and then apply an alpha to it.
First, to have a legend, we need to add labels to our data that we want to show up on the legend.
sample code: pythonprogramming.net
hkinsley.com
twitter.com/sentdex
sentdex.com
seaofbtc.com
Course Index
- Introduction and Line
- Legends titles and labels
- bar charts and histograms
- Scatter Plots
- stack plots
- Pie Charts
- loading data from files
- getting data from the internet
- converting data from the internet
- basic customizations, rotating labels
- handling unix time
- more customization of colors and fills
- spines and horizontal lines
- candlestick OHLC graphs
- styles
- Live graphs
- annotations and placing text
- annotating last price to edge of matplotlib graph example
- subplots
- implementing subplots to our stock chart
- adding more indicator data to our charts
- cleaning chart, custom fills, pruning
- sharex axis
- multi y axis plotting volume on stock chart
- customizing Matplotlib Legends
- Basemap intro
- Basemap customization options
- plotting coordinates on a map with Basemap
- matplotlib 3d intro
- 3d scatter plot
- 3d bar charts
- conclusion
Course Description
Learn how to visualize data in the form of line graphs, bar charts, pie charts, 3D graphs, and more with Python 3 and Matplotlib.