Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Matplotlib for Python Developers. - Second Edition

You're reading from  Matplotlib for Python Developers. - Second Edition

Product type Book
Published in Apr 2018
Publisher Packt
ISBN-13 9781788625173
Pages 300 pages
Edition 2nd Edition
Languages
Authors (3):
Aldrin Yim Aldrin Yim
Profile icon Aldrin Yim
Claire Chung Claire Chung
Profile icon Claire Chung
Allen Yu Allen Yu
Profile icon Allen Yu
View More author details

Table of Contents (16) Chapters

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Introduction to Matplotlib 2. Getting Started with Matplotlib 3. Decorating Graphs with Plot Styles and Types 4. Advanced Matplotlib 5. Embedding Matplotlib in GTK+3 6. Embedding Matplotlib in Qt 5 7. Embedding Matplotlib in wxWidgets Using wxPython 8. Integrating Matplotlib with Web Applications 9. Matplotlib in the Real World 10. Integrating Data Visualization into the Workflow Index

Index

A

  • angular grids
    • controlling / Controlling radial and angular grids
  • animated plot
    • creating / Creating animated plot
  • animation API
    • reference / Creating animated plot
  • API data formats
    • about / Typical API data formats
    • comma-separated values (CSV) / CSV
    • JavaScript Object Notation (JSON) / JSON
  • API key
    • URL / Importing and visualizing data from a JSON API
  • arrows / Arrows
  • average true range (ATR) / Integrating more pricing indicators
  • axes
    • adjusting / Adjusting axes, grids, labels, titles, and legends, Adjusting axes and ticks
    • limits, adjusting / Adjusting axis limits
    • labels, adding / Adding axis labels
    • non-linear axis scale, using / Using a non-linear axis scale

B

  • bar plot
    • about / Bar plot
    • properties, setting / Setting bar plot properties
    • drawing, with error bars using multivariate data / Drawing bar plots with error bars using multivariate data
  • Basemap
    • installing / Basemap
  • Beautiful Soup
    • about / Scraping information from websites
    • URL / Scraping information from websites
    • installing / Scraping information from websites
  • Bitcoin prices
    • displaying, with Django and Matplotlib / Showing Bitcoin prices using Django and Matplotlib
    • Django app, creating / Creating a Django app
    • Django view, creating / Creating a simple Django view
    • Bitcoin candlestick view, creating / Creating a Bitcoin candlestick view
    • pricing indicators, integrating / Integrating more pricing indicators
    • image, integrating into Django template / Integrating the image into a Django template

C

  • callbacks / Introduction to the GTK+3 signal system
  • cells / Editing and running code
  • clustermap
    • used, for creating hierarchy in multivariate data / Showing hierarchy in multivariate data with clustermap
  • color
    • controlling / Controlling the colors
    • cycle / Default color cycle
    • single-lettered abbreviations / Single-lettered abbreviations for basic colors
    • HTML names / Standard HTML color names
    • RGB color code / RGB or RGBA color code
    • RGBA color code / RGB or RGBA color code
    • hexadecimal code / Hexadecimal color code
    • depth of grayscale / Depth of grayscale
    • colormaps / Colormaps
    • custom colormaps, creating / Creating custom colormaps
  • colormaps
    • about / Colormaps
    • reference link / Colormaps
  • comma-separated values (CSV) / CSV
  • commodity channel index (CCI) / Integrating more pricing indicators
  • Convolutional Neural Network (CNN)
    • creating, for digit recognition / Creating a CNN to recognize digits

D

  • 3D plots
    • using, with Axes3D / 3D plots with Axes3D
  • dash patterns
    • custom dash style, designing / Designing a custom dash style
  • data
    • loading / Loading data
    • importing, from JSON API / Importing and visualizing data from a JSON API
    • visualizing, from JSON API / Importing and visualizing data from a JSON API
  • Data-Driven Documents (D3) / Default color cycle
  • dataset
    • sample images, visualizing / Visualizing sample images from the dataset
    • UCI ML handwritten digits dataset, importing / Importing the UCI ML handwritten digits dataset
  • data structures
    • list / List
    • NumPy array / NumPy array
    • pandas DataFrame / pandas DataFrame
  • digit recognition
    • with Convolutional Neural Network (CNN) / Creating a CNN to recognize digits
  • Django
    • about / More about Django
    • key features / More about Django
    • developing, in Docker containers / Django development in Docker containers
    • site, starting / Starting a new Django site
    • dependencies, installing / Installation of Django dependencies
    • environment, setting up / Django environment setup
    • development server, executing / Running the development server
    • and Matplotlib, used for displaying Bitcoin prices / Showing Bitcoin prices using Django and Matplotlib
  • Docker
    • installing / Installing Docker
    • installing, on Windows / Docker for Windows users
    • installing, for Mac / Docker for Mac users
  • Docker CE for Mac
    • URL / Docker for Mac users
  • Dockerfile
    • about / Django development in Docker containers
    • reference / Django development in Docker containers
  • Docker Toolbox
    • reference / Docker for Windows users
    • URL / Docker for Windows users
  • dots per inch (DPI) / Raster images, Setting the figure resolution, Non-interactive backends

E

  • exponential moving average (EMA) / Integrating more pricing indicators

F

  • FFmpeg
    • installing / Creating animated plot
    • URL / Creating animated plot
    • reference / Creating animated plot
  • fig.add_axes() function
    • used, for drawing inset plots / Drawing inset plots with fig.add_axes()
  • file
    • plots, saving / Saving plots to a file
  • financial plotting / Financial plotting
  • font / Font
  • FuncAnimation / Creating animated plot

G

  • geographical plotting
    • about / Geographical plotting, Basemap
    • Basemap / Basemap
    • GeoPandas / GeoPandas
  • Geographic Information System (GIS) / Geographical plotting
  • GeoPandas / GeoPandas
  • get current axes / Spines
  • Glade
    • installing / Installing Glade
    • GUI, designing / Designing the GUI using Glade
    • interface / Designing the GUI using Glade
  • graphical backends, Matplotlib
    • about / Matplotlib graphical backends
    • non-interactive backends / Non-interactive backends
    • interactive backends / Interactive backends
  • graphical user interfaces (GUI) applications / Interactive backends
  • grids
    • adjusting / Adjusting axes, grids, labels, titles, and legends
    • adding / Adding a grid
  • gross domestic product (GDP) / Importing and visualizing data from a JSON API
  • GTK+3
    • installing / Installing and setting up GTK+3
    • setting up / Installing and setting up GTK+3
    • reference / Installing and setting up GTK+3
    • about / A brief introduction to GTK+3
    • signal system / Introduction to the GTK+3 signal system
    • Glade, installing / Installing Glade

H

  • heatmap
    • used, for visualizing multivariate data / Visualizing multivariate data with a heatmap
  • histogram / Histogram
  • historical bitcoin prices data
    • reference / Creating a Bitcoin candlestick view
  • Homebrew
    • about / Creating animated plot
    • URL / Creating animated plot
  • HttpRequest object
    • URL / Creating a simple Django view
  • HttpResponse object
    • URL / Creating a simple Django view
  • hyperparameter tuning / Getting started

I

  • ImageMagick
    • installing / Creating animated plot
    • URL / Creating animated plot
  • image plotting / Image plotting
  • information
    • scraping, from websites / Scraping information from websites
  • interactive backends
    • about / Interactive backends
    • using / Interactive backends
  • io package
    • URL / Creating a simple Django view

J

  • JavaScript Object Notation (JSON) / JSON
  • JSON API
    • data, importing / Importing and visualizing data from a JSON API
    • data, visualizing / Importing and visualizing data from a JSON API
    • visualization tasks, simplifying with Seaborn / Using Seaborn to simplify visualization tasks
  • Jupyter Notebook
    • setting up / Setting up Jupyter Notebook
    • URL / Setting up Jupyter Notebook
    • session, initiating / Starting a Jupyter Notebook session
    • executing, on remote server / Running Jupyter Notebook on a remote server
    • code, editing / Editing and running code
    • code, executing / Editing and running code
    • kernel, manipulating / Manipulating notebook kernel and cells
    • cells, manipulating / Manipulating notebook kernel and cells
    • plots, embedding / Embed your Matplotlib plots
    • Markdown, documenting / Documenting in Markdown
    • auto saving / Save your hard work!
    • Matplotlib, integrating / Jupyter support
    • interactive navigation toolbar, accessing / Interactive navigation toolbar

K

  • K Desktop Environment (KDE) / A brief introduction to Qt 5 and PyQt 5
  • Kernel Density Estimation (KDE) plot
    • about / More on Pandas-Matplotlib integration
    • used, for displaying distribution / Showing distribution with the KDE plot
  • keyword arguments
    • marker styles, fine-tuning / Fine-tuning marker styles with keyword arguments

L

  • labels
    • adjusting / Adjusting axes, grids, labels, titles, and legends
  • LaTex
    • about / LaTeX support
    • external text renderer / External text renderer
  • legends
    • adjusting / Adjusting axes, grids, labels, titles, and legends
    • about / Titles and legends
    • adding / Adding a legend
  • line plot
    • drawing / Line plot
  • line styles
    • about / Line and marker styles, Line styles
    • color, setting / Color
    • thickness / Line thickness
    • dash patterns / Dash patterns
    • cap styles / Cap styles
  • list / List

M

  • Mac
    • Docker, installing / Docker for Mac users
  • macOS
    • Python, installation / Python installation for macOS
  • marker
    • shape, selecting / Choosing the shape of markers
    • characters, using / Using custom characters as markers
    • sizes, adjusting / Adjusting marker sizes and colors
    • colors, adjusting / Adjusting marker sizes and colors
  • marker styles
    • about / Line and marker styles
    • fine-tuning, with keyword arguments / Fine-tuning marker styles with keyword arguments
  • mathematical notations
    • about / Mathematical notations
    • MathTex / Mathtext
    • LaTex support / LaTeX support
  • Matplotlib
    • about / What is Matplotlib?
    • benefits / Merits of Matplotlib, Open source and community support
    • Matplotlib 2.x / What's new in Matplotlib 2.x?
    • website / Matplotlib website and online documentation
    • online documentation / Matplotlib website and online documentation
    • output formats / Output formats and backends 
    • backends / Output formats and backends 
    • static output formats / Static output formats
    • raster images / Raster images
    • vector images / Vector images
    • setting up / Setting up Matplotlib
    • Python, installing / Installing Python
    • installing / Installing Matplotlib
    • dependencies / About the dependencies
    • pip Python package manager, installing / Installing the pip Python package manager
    • installing, with pip / Installing Matplotlib with pip
    • Jupyter Notebook, setting up / Setting up Jupyter Notebook
    • plots, creating / Our first plots with Matplotlib
    • integrating, with Jupyter Notebook / Jupyter support
    • configuring / Configuring Matplotlib
    • configuring, with Python code / Configuring within Python code
    • default settings, reverting / Reverting to default settings
    • configuring, via rc file / Global setting via configuration rc file
    • plot types / More native Matplotlib plot types
    • embedding, in GUI from wxGlade / Embedding Matplotlib in a GUI from wxGlade
    • and Django, used for displaying Bitcoin prices / Showing Bitcoin prices using Django and Matplotlib
    • graphical backends / Matplotlib graphical backends
  • Matplotlib 2.x
    • about / What's new in Matplotlib 2.x?
    • improved functionality / Improved functionality and performance
    • improved performance / Improved functionality and performance
    • improved color conversion API / Improved color conversion API and RGBA support
    • RGBA support / Improved color conversion API and RGBA support
    • improved image support / Improved image support
    • text, rendering / Faster text rendering
    • default animation codec, modifying / Change in the default animation codec
    • default styles, modifying / Changes in default styles
  • mean-and-error plots / Mean-and-error plots
  • MNIST dataset
    • reference / Image plotting
  • model template view (MTV) design pattern / More about Django
  • moving average convergence divergence (MACD) / Integrating more pricing indicators
  • multiline plot
    • creating / Multiline plots
    • example / A complete example
  • multiple data series, plots
    • overlaying / Overlaying multiple data series in a plot
    • multiline plots, creating / Multiline plots
    • scatter plot, creating for clusters / Scatter plot to show clusters
    • trendline, adding over scatter plot / Adding a trendline over a scatter plot
  • multivariate data
    • used, for drawing bar plots with error bars / Drawing bar plots with error bars using multivariate data
    • visualizing, with heatmap / Visualizing multivariate data with a heatmap
    • hierarchy, creating with clustermap / Showing hierarchy in multivariate data with clustermap

N

  • non-interactive backends
    • about / Non-interactive backends
    • vector graphics / Non-interactive backends
    • raster graphics / Non-interactive backends
  • NumPy array / NumPy array

O

  • object-oriented programming (OOP) / Introduction to the GTK+3 signal system

P

  • Pandas-Matplotlib integration
    • about / More on Pandas-Matplotlib integration
    • density of bivariate data, displaying with hexbin plots / Showing the density of bivariate data with hexbin plots
  • pandas DataFrame
    • about / pandas DataFrame
    • reference / pandas DataFrame
  • pie chart / Pie chart
  • pip Python package manager
    • installing / Installing the pip Python package manager
  • plots
    • creating, in Matplotlib / Our first plots with Matplotlib
    • pyplot, importing / Importing the pyplot
    • line plot, drawing / Line plot
    • scatter plot / Scatter plot
    • multiple data series, overlaying / Overlaying multiple data series in a plot
    • saving, to file / Saving plots to a file
    • output format, setting / Setting the output format
    • figure resolution, setting / Setting the figure resolution
  • plot types
    • expanding, with Seaborn / Expanding plot types with Seaborn 
  • plot types, Matplotlib
    • right plot, choosing / Choosing the right plot
    • histogram / Histogram
    • bar plot / Bar plot
    • mean-and-error plots / Mean-and-error plots
    • pie chart / Pie chart
    • polar chart / Polar chart
  • plt.figure() API
    • used, for initiating figure / Initiating a figure with plt.figure()
  • plt.figure.add_subplot() function
    • used, for adding subplots / Adding subplots with plt.figure.add_subplot()
  • plt.subplot() function
    • used, for initiating subplots as axes / Initiating subplots as axes with plt.subplot()
  • plt.subplot2grid() function
    • used, for aligning subplots of different dimensions / Aligning subplots of different dimensions with plt.subplot2grid()
  • plt.subplots() function
    • used, for initiating array of subplots / Initiating an array of subplots with plt.subplots()
    • shared axes / Shared axes
  • plt.subplots_adjust function
    • used, for adjusting subplot dimensions post hoc / Adjusting subplot dimensions post hoc with plt.subplots_adjust
  • plt.tight_layout() function
    • used, for setting margin / Setting the margin with plt.tight_layout()
  • polar chart
    • about / Polar chart
    • radial grids, controlling / Controlling radial and angular grids
    • angular grids, controlling / Controlling radial and angular grids
  • pole / Polar chart
  • purchasing power parity (PPP) / Importing and visualizing data from a JSON API
  • PyGame
    • about / Creating animated plot
    • URL / Creating animated plot
  • PyProj
    • reference / Basemap
  • PyQt 5
    • about / A brief introduction to Qt 5 and PyQt 5
    • versus PyQt 4 / Differences between Qt 4 and PyQt 4
  • Python
    • URL / Installing Python
    • installing / Installing Python
    • installation, for Windows / Python installation for Windows 
    • installation, for macOS / Python installation for macOS
    • installation, for Linux / Python installation for Linux
    • Matplotlib, configuring / Configuring within Python code

Q

  • Qt 5
    • about / A brief introduction to Qt 5 and PyQt 5
    • versus Qt 4 / Differences between Qt 4 and PyQt 4
    • GUI, designing with QT Creator/ QT Designer / Introducing QT Creator / QT Designer
  • QT Creator / Introducing QT Creator / QT Designer
  • QT Designer / Introducing QT Creator / QT Designer
  • Quandl
    • about / Creating a Bitcoin candlestick view, Importing and visualizing data from a JSON API
    • references / Creating a Bitcoin candlestick view

R

  • radial grids
    • controlling / Controlling radial and angular grids
  • raster graphics / Non-interactive backends
  • rc file
    • Matplotlib, configuring / Global setting via configuration rc file
    • searching / Finding the rc configuration file
    • editing / Editing the rc configuration file
  • relative strength index (RSI) / Integrating more pricing indicators

S

  • scatter plot
    • about / Scatter plot
    • creating, for clusters / Scatter plot to show clusters
    • trendline, adding / Adding a trendline over a scatter plot
  • scikit-learn
    • datasets, URL / Scatter plot to show clusters
    • t-Distributed Stochastic Neighbor Embedding (t-SNE), importing / Importing the t-SNE method from scikit-learn
  • scikit-learn library
    • URL / Scatter plot to show clusters
  • Scrapy / Scraping information from websites
  • Seaborn
    • used, for expanding plot types / Expanding plot types with Seaborn 
    • visualization tasks, simplifying / Using Seaborn to simplify visualization tasks
  • SECRET_KEY
    • URL / Django environment setup
  • Serif
    • versus Sans Serif / Suitable font styles
  • spines / Spines
  • Stockstats
    • about / Integrating more pricing indicators
    • URL / Integrating more pricing indicators
  • style sheet
    • using / Using style sheets
    • applying / Applying a style sheet
    • creating / Creating own style sheet
    • reference link / Creating own style sheet
    • resetting / Resetting to default styles
  • styling
    • aesthetics / Aesthetics and readability considerations in styling
    • readability considerations / Aesthetics and readability considerations in styling
    • font styles, selecting / Suitable font styles
    • color, using / Effective use of colors
    • simplicity / Keeping it simple
  • subplot
    • drawing / Drawing Subplots
    • plt.figure() API, used for initiating figure / Initiating a figure with plt.figure()
    • initiating, as axes with plt.subplot() / Initiating subplots as axes with plt.subplot()
    • adding, with plt.figure.add_subplot() function / Adding subplots with plt.figure.add_subplot()
    • array, initiating with plt.subplots() function / Initiating an array of subplots with plt.subplots()
    • margin, setting with plt.tight_layout() function / Setting the margin with plt.tight_layout()
    • aligning of different dimensions, with plt.subplot2grid() function / Aligning subplots of different dimensions with plt.subplot2grid()
    • inset plots, drawing with fig.add_axes() function / Drawing inset plots with fig.add_axes()
    • dimensions post hoc, adjusting with plt.subplots_adjust function / Adjusting subplot dimensions post hoc with plt.subplots_adjust

T

  • t-Distributed Stochastic Neighbor Embedding (t-SNE)
    • data nature, exploring / Exploring the data nature by the t-SNE method
    • about / Understanding t-Distributed stochastic neighbor embedding 
    • importing, form scikit-learn / Importing the t-SNE method from scikit-learn
    • hypervariables, setting / Importing the t-SNE method from scikit-learn
    • plot, drawing for data / Drawing a t-SNE plot for our data
  • text annotations
    • about / Text and annotations
    • adding / Adding text annotations
    • font / Font
    • mathematical notations / Mathematical notations
    • arrows / Arrows
  • ticks
    • adjusting / Adjusting axes and ticks
    • space customization, with locators / Customizing tick spacing with locators
    • removing, with NullLocator / Removing ticks with NullLocator
    • locating, in multiples with MultipleLocator / Locating ticks in multiples with MultipleLocator
    • locators, for displaying date and time / Locators to display date and time
  • TimedAnimation / Creating animated plot
  • titles
    • adjusting / Adjusting axes, grids, labels, titles, and legends
    • about / Titles and legends
    • adding / Adding a title

U

  • UCI ML handwritten digits dataset
    • importing / Importing the UCI ML handwritten digits dataset
    • reference / Importing the UCI ML handwritten digits dataset
    • sample images, plotting / Plotting sample images
    • image each of digits 0-9, extracting / Extracting one sample each of digits 0-9
    • randomness, examining / Examining the randomness of the dataset
    • 10 digits, plotting in subplots / Plotting the 10 digits in subplots

V

  • vector graphics / Non-interactive backends
  • visualizations
    • simplifying, with Seaborn / Using Seaborn to simplify visualization tasks
    • prediction results, evaluating / Evaluating prediction results with visualizations
    • prediction performance, examining for each digit / Examining the prediction performance for each digit 
    • falsely predicted images, extracting / Extracting falsely predicted images

W

  • websites
    • information, scraping / Scraping information from websites
  • wedges / Pie chart
  • Windows
    • Python, installation / Python installation for Windows 
    • Docker, installing / Docker for Windows users
  • World Bank World Development Indicators (WWDI) database / Importing and visualizing data from a JSON API
  • wxGlade
    • about / Embedding Matplotlib in a GUI from wxGlade
    • Matplotlib, embedding in GUI / Embedding Matplotlib in a GUI from wxGlade
  • wxPython
    • about / A brief introduction to wxWidgets and wxPython
    • URL / A brief introduction to wxWidgets and wxPython
    • example / A brief introduction to wxWidgets and wxPython
  • wxWidgets
    • about / A brief introduction to wxWidgets and wxPython
    • ID system / A brief introduction to wxWidgets and wxPython
    • sizer widgets / A brief introduction to wxWidgets and wxPython
    • example / A brief introduction to wxWidgets and wxPython
    • Matplotlib, embedding in GUI from wxGlade / Embedding Matplotlib in a GUI from wxGlade
lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}