Top Banner
2 Knowing Your Data Cleaning up data from outliers
60

Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Apr 20, 2018

Download

Documents

ngoliem
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

2Knowing Your Data

Cleaning up data from outliers

Page 2: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 3: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Importing image data into NumPy arrays

Page 4: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 5: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Generating controlled random datasets

Page 6: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Smoothing the noise in real-world data

Page 7: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 8: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

3Drawing Your First Plots and

Customizing Them

Defining plot types – bar, line, and stacked charts

Page 9: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 10: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Drawing a simple sine and cosine plot

Page 11: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Defining axis lengths and limits

Page 12: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Setting ticks, labels, and grids

Page 13: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Adding a legend and annotations

Page 14: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Moving spines to the center

Page 15: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making histograms

Page 16: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making bar charts with error bars

Page 17: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making pie charts count

Page 18: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Plotting with filled areas

Page 19: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making stacked plots

Page 20: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Drawing scatter plots with colored markers

Page 21: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

4More Plots and Customizations

Adding a data table to the figure

Page 22: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Using subplots

Page 23: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Customizing grids

Page 24: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 25: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Creating contour plots

Page 26: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Filling an under-plot area

Page 27: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Drawing polar plots

Page 28: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Visualizing the filesystem tree using a polar bar

Page 29: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Customizing matplotlib with style

Page 30: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

5Making 3D visualizations

Creating 3D bars

Page 31: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 32: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Creating 3D histograms

Animating in matplotlib

Page 33: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Animating with OpenGL

Page 34: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

6Plotting Charts with Images and

Maps

Plotting with images

Page 35: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Displaying an image with other plots in the figure

Page 36: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Plotting data on a map using Basemap

Page 37: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Plotting data on a map using Google Map API

Page 38: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Generating CAPTCHA images

Page 39: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

7Using the Right Plots to

Understand Data

Understanding logarithmic plots

Page 40: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Understanding spectrograms

Page 41: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Creating stem plot

Page 42: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Drawing streamlines of vector flow

Page 43: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Using colormaps

Page 44: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Using scatter plots and histograms

Page 45: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 46: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Plotting the cross correlation between two variables

Page 47: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Importance of autocorrelation

8More on matplotlib Gems

Page 48: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Drawing barbs

Making a box and a whisker plot

Page 49: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making Gantt charts

Page 50: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making error bars

Page 51: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Making use of text and font properties

Page 52: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Rendering text with LaTeX

Page 53: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Understanding the difference between pyplot and OO API

Page 54: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 55: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

9Visualizations in the clouds with

Plot.ly

Creating line charts

Page 56: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 57: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts
Page 58: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Creating bar charts

Page 59: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Plotting a 3D trefoil knot

Page 60: Knowing Your Data - Packt Publishing · 3 Drawing Your First Plots and Customizing Them Defining plot types – bar, line, and stacked charts

Visualizing maps and bubbles