Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Python Data Visualization Cookbook (Second Edition)

You're reading from   Python Data Visualization Cookbook (Second Edition) Visualize data using Python's most popular libraries

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781784396695
Length 302 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Igor Milovanovic Igor Milovanovic
Author Profile Icon Igor Milovanovic
Igor Milovanovic
 Foures Foures
Author Profile Icon Foures
Foures
Giuseppe Vettigli Giuseppe Vettigli
Author Profile Icon Giuseppe Vettigli
Giuseppe Vettigli
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Python Data Visualization Cookbook Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Preparing Your Working Environment FREE CHAPTER 2. Knowing Your Data 3. Drawing Your First Plots and Customizing Them 4. More Plots and Customizations 5. Making 3D Visualizations 6. Plotting Charts with Images and Maps 7. Using the Right Plots to Understand Data 8. More on matplotlib Gems 9. Visualizations on the Clouds with Plot.ly Index

Index

A

  • Advenced Linux Sound Architecture (ALSA) / Getting ready
  • alignment properties
    • horizontalalignment (ha) / Getting ready
    • verticalalignment (va) / Getting ready
    • multialignment / Getting ready
  • Anaconda
    • about / Getting ready
  • animation
    • in matplotlib / Animating in matplotlib, Getting ready, How to do it..., There's more...
    • OpenGL, using / Animating with OpenGL, Getting ready, How to do it..., There's more...
  • annotations
    • about / Adding legends and annotations
    • adding / How to do it..., How it works...
  • antenna radiation pattern
    • reference link / Drawing polar plots
  • Application Programming Interface (API) / Understanding the difference between pyplot and OO API
  • areas, between two contours
    • filling / Plotting with filled areas, How it works..., There's more...
  • array slicing / How it works...
  • arrows (quivers) / Drawing barbs
  • ArtistAnimation class / There's more...
  • autocorrelation
    • about / Importance of autocorrelation
    • using / How to do it..., How it works..., There's more...
  • Axes.annotate function / How it works...
  • axis labels
    • transparency, setting of / Setting the transparency and size of axis labels, How it works...
    • size, setting of / Setting the transparency and size of axis labels, How it works...
  • axis lengths
    • defining / Defining axis lengths and limits, How it works..., There's more...

B

  • background color
    • defining / Background color
  • barb
    • about / Drawing barbs
    • drawing / Getting ready, How it works..., There's more...
    • spacing / Getting ready
    • height / Getting ready
    • width / Getting ready
    • emptybarb / Getting ready
    • using / How to do it...
  • bar charts
    • creating / Making bar charts with error bars, How to do it..., How it works..., Creating bar charts, How to do it..., How it works..., There's more...
  • bar charts, parameters
    • width / How to do it...
    • bottom / How to do it...
    • edgecolor / How to do it...
    • ecolor / How to do it...
    • linewidth / How to do it...
    • orientation / How to do it...
    • xerr / How to do it...
    • yerr / How to do it...
  • Basemap
    • used, for plotting data on map / Plotting data on a map using Basemap, How to do it..., How it works...
  • basic plot, matplotlib
    • x and y axes / How to do it...
    • x and y tickers / How to do it...
    • x and y tick labels / How to do it...
    • plotting area / How to do it...
  • box
    • creating / Making a box-and-whisker plot, Getting ready, How to do it..., How it works...
  • box plot
    • Box / There's more...
    • Median / There's more...
    • Whiskers / There's more...
    • Fliers / There's more...
  • bubbles
    • visualizing / Visualizing maps and bubbles, Getting ready, How it works...

C

  • CAPTCHA images
    • generating / Generating CAPTCHA images, How to do it..., How it works..., There's more...
    • about / Getting ready
  • categories, colormaps
    • sequential / Getting ready
    • diverging / Getting ready
    • qualitative / Getting ready
    • cyclic / Getting ready
  • chart line
    • shadow, adding to / Adding a shadow to the chart line, How to do it..., How it works...
  • class and instance methods, Image module / Getting ready
  • Colorbrew
    • URL / How it works...
  • Colorbrewer2
    • URL / Getting ready
  • colored markers
    • used, for drawing scatter plots / Drawing scatter plots with colored markers, How to do it..., How it works...
  • colormaps
    • about / Using colormaps
    • using / Getting ready, How to do it..., How it works..., There's more...
    • categories / Getting ready
    • brg / Getting ready
    • bwr / Getting ready
    • coolwarm / Getting ready
    • rainbow / Getting ready
    • seismic / Getting ready
    • terrain / Getting ready
  • colors
    • obtaining / Color
  • configuration file, options
    • axes / How it works...
    • backend / How it works...
    • figure / How it works...
    • font / How it works...
    • grid / How it works...
    • legend / How it works...
    • lines / How it works...
    • patch / How it works...
    • savefig / How it works...
    • text / How it works...
    • verbose / How it works...
    • yticks / How it works...
    • xticks / How it works...
  • contour plots
    • creating / Creating contour plots, Getting ready, How to do it..., How it works...
  • controlled random datasets
    • generating / Generating controlled random datasets, Getting ready, How to do it...
  • coordinate systems
    • Data / Getting ready
    • Axes / Getting ready
    • Figure / Getting ready
    • Display / Getting ready
  • correlogram / Importance of autocorrelation
  • cross correlation, between two variables
    • plotting / Plotting the cross correlation between two variables, Getting ready, How to do it..., How it works...
  • CSV
    • data, importing from / Importing data from CSV, How it works..., There's more...
    • data, exporting to / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...

D

  • 3D bars
    • creating / Creating 3D bars, How to do it..., How it works..., There's more...
  • 3D histograms
    • creating / Creating 3D histograms, Getting ready, How to do it..., How it works...
  • 3D trefoil knot
    • plotting / Plotting a 3D trefoil knot, How to do it..., How it works...
    • about / Plotting a 3D trefoil knot
  • data
    • importing, from CSV / Importing data from CSV, How it works..., There's more..., How to do it...
    • importing, from Excel files / Importing data from Microsoft Excel files, How to do it..., How it works..., There's more...
    • importing, from fixed-width data files / Importing data from fixed-width data files, How to do it..., How it works...
    • importing, from tab-delimited files / Importing data from tab-delimited files, There's more...
    • importing, from JSON resource / Importing data from a JSON resource, How it works..., There's more...
    • exporting, to Excel / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...
    • exporting, to JSON / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...
    • exporting, to CSV / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...
    • importing, with Pandas / Importing and manipulating data with Pandas, There's more...
    • manipulating, with Pandas / Importing and manipulating data with Pandas, There's more...
    • importing, form database / Importing data from a database, How to do it...
    • importing, from database / How to do it..., How it works..., There's more...
    • cleaning up, from outliers / Cleaning up data from outliers, How to do it..., There's more...
    • plotting, on map with Basemap / Plotting data on a map using Basemap, How to do it..., How it works...
    • plotting, on map with Google Map API / Plotting data on a map using the Google Map API, Getting ready, How to do it..., How it works...
  • database
    • data, importing / Importing data from a database, How to do it..., How it works..., There's more...
  • DataFrame / How it works..., There's more...
  • data table
    • adding, to figure / Adding a data table to the figure, How it works..., There's more...
  • data visualizations
    • types / Introduction
  • Disposable Median Monthly Salary per Country
    • visualizing / How to do it...
  • Distutils
    • about / How it works...

E

  • EPD
    • about / Getting ready, How to do it...
  • error bars
    • drawing / Making bar charts with error bars, How to do it..., How it works..., There's more...
    • about / Making error bars
    • creating / How to do it..., How it works..., There's more...
  • Excel
    • data, exporting to / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...
  • Excel files
    • data, importing / Importing data from Microsoft Excel files, Getting ready, How it works..., There's more...
  • exploded pie chart
    • creating / How to do it...

F

  • FancyArrowPatch class / Getting ready
  • figure
    • data table, adding to / Adding a data table to the figure, How it works..., There's more...
  • figure() / Getting ready
  • files
    • reading, in chunks / Reading files in chunks, How it works..., There's more...
  • filesystem tree
    • visualizing, plolar bar used / Visualizing the filesystem tree using a polar bar, How to do it..., How it works...
  • fixed-width data files
    • data, importing / Importing data from fixed-width data files, How to do it..., How it works...
  • font property
    • using / Making use of text and font properties, Getting ready, How to do it..., How it works...
  • format strings
    • defining / Defining plot line styles, properties, and format strings, How to do it..., How it works...
  • formatters, stem plot
    • linefmt / How to do it...
    • markerfmt / How to do it...
    • basefmt / How to do it...
    • label / How to do it...
    • hold / How to do it...
    • bottom / How to do it...
  • format_data() function / How it works...
  • freetype
    • about / Getting ready
  • freetype 1.4+ / Getting ready

G

  • Gantt charts
    • about / Making Gantt charts
    • creating / Getting ready, How to do it..., How it works...
  • get_captcha method / How it works...
  • get_page_template() function / How it works...
  • GitHub
    • URL / How to do it...
  • glumpy / Getting ready
  • Google Data Visualization Library, for Python
    • about / Getting ready
  • Google Developer
    • URL / There's more...
  • Google Geochart / How to do it...
  • Google Map API
    • used, for plotting data on map / Plotting data on a map using the Google Map API, Getting ready, How it works...
  • Google Visualization API / Getting ready
  • grids
    • setting / Setting ticks, labels, and grids, How to do it...
    • customizing / Customizing grids, Getting ready, How to do it..., How it works...

H

  • hatch values / How it works...
  • histograms
    • about / Making histograms, Using scatter plots and histograms
    • creating / How to do it..., How it works...
    • bins / How to do it...
    • range / How to do it...
    • normed / How to do it...
    • histtype / How to do it...
    • align / How to do it...
    • color / How to do it...
    • orientation / How to do it...
    • using / Getting ready, How to do it..., How it works..., There's more...
  • Homebrew
    • about / Getting ready
  • HTTP Protocol and Response messages
    • URL / How it works...

I

  • image data
    • importing, into NumPy arrays / Importing image data into NumPy arrays, How to do it..., How it works..., There's more...
  • ImageDraw module / Getting ready
  • ImageFilter module
    • about / Getting ready
    • fixed image enhancement filters / Getting ready
    • image filters / Getting ready
  • image histogram viewer
    • building / How to do it...
  • image processing
    • PIL, installing for / Installing Python Imaging Library (PIL) for image processing, How to do it...
  • images
    • processing, with PIL / Processing images with PIL, Getting ready, How it works..., There's more...
    • used, for plotting / Plotting with images, How to do it..., How it works...
    • displaying, with other plots in figure / Displaying images with other plots in the figure
  • InnoDB / There's more...
  • installing
    • matplotlib / Getting ready, How to do it..., How it works...
    • NumPy / Getting ready, How to do it..., How it works...
    • SciPy / Getting ready, How to do it..., How it works...
    • virtualenvwrapper / Getting ready, How to do it...
    • virtualenv / Getting ready, How to do it...
    • matplotlib, on Mac OS X / Installing matplotlib on Mac OS X, How to do it...
    • matplotlib, on Windows / Installing matplotlib on Windows, How to do it...
    • PIL, for image processing / Installing Python Imaging Library (PIL) for image processing, How to do it...
    • requests module / Installing a requests module
  • Interactive Python / There's more...
  • IPython
    • about / There's more..., How to do it...
    • plot, creating / How to do it..., How it works..., There's more...
  • isin method / How it works...
  • isolines
    • about / Creating contour plots

J

  • JSON
    • URL / There's more...
    • data, exporting to / Exporting data to JSON, CSV, and Excel, How to do it..., How it works...
  • JSON-formatted timeline, GitHub
    • reference link / How it works...
  • JSON resource
    • data, importing from / Importing data from a JSON resource, How it works..., There's more...

L

  • labels
    • setting / Setting ticks, labels, and grids, How to do it...
  • LaTeX
    • about / Rendering text with LaTeX
    • used, for rendering text / Rendering text with LaTeX, Getting ready, How to do it..., How it works..., There's more...
    • URL / Rendering text with LaTeX, There's more...
  • legend
    • about / Adding legends and annotations
    • adding / How to do it..., How it works...
  • libpng
    • about / Getting ready
  • libpng 1.2 / Getting ready
  • limits
    • defining / Defining axis lengths and limits, How it works..., There's more...
  • line charts
    • creating / Creating line charts, How it works..., There's more...
    • two curves, plotting / How to do it..., How it works...
  • line markers / How it works...
  • linestyles / How it works...
  • location parameter strings / How it works...
  • logarithmic plots
    • about / Understanding logarithmic plots, Getting ready
    • using / Getting ready, How to do it...
    • working / How it works...

M

  • Mac OS X
    • matplotlib, installing on / Installing matplotlib on Mac OS X, How to do it...
  • MacTeX / Getting ready
  • map
    • data plotting, with Basemap / Plotting data on a map using Basemap, How to do it..., How it works...
    • data plotting, URL / There's more...
    • data plotting, with Google Map API / Plotting data on a map using the Google Map API, Getting ready, How to do it..., How it works...
  • maps
    • visualizing / Visualizing maps and bubbles, How to do it..., How it works...
  • matplotlib
    • about / Installing matplotlib, NumPy, and SciPy
    • installing / Getting ready, How to do it..., How it works...
    • installing, on Mac OS X / Installing matplotlib on Mac OS X, How to do it...
    • installing, on Windows / Installing matplotlib on Windows, How to do it...
    • parameters, customizing in code / Customizing matplotlib's parameters in code, How it works…
    • parameters, customizing per project / Customizing matplotlib's parameters per project, How it works...
    • customizing, with style / Customizing matplotlib with style, How to do it..., How it works...
    • animation / Animating in matplotlib, Getting ready, How to do it..., How it works...
    • Animation (object) class / Getting ready
    • TimedAnimation (Animation) class / Getting ready
    • ArtistAnimation (TimedAnimation) class / Getting ready
    • FuncAnimation (TimedAnimation) class / Getting ready
    • init function / How it works...
    • animate function / How it works...
    • .animation.Animation.save function / How it works...
    • stream plot / There's more...
    • URL / How it works..., There's more..., Getting ready
    • .pyplot interface / Getting ready
    • API (matplotlib frontend) / Getting ready
    • backends / Getting ready
  • matplotlib.animation.Animation class / Getting ready
  • matplotlib.patheffects
    • reference link / There's more...
  • matplotlib.pyplot
    • text / Getting ready
    • xlabel / Getting ready
    • ylabel / Getting ready
    • title / Getting ready
    • suptitle / Getting ready
    • figtext / Getting ready
  • matplotlib.pyplot.locator_params() function / How to do it...
  • matplotlib.pyplot.streamplot function / Getting ready
  • matplotlib.pyplot.xcorr function / Getting ready
  • Mayavi / Getting ready
  • Median absolute deviation (MAD) / Getting ready
  • Median Filter / There's more...
  • mmap argument
    • URL / There's more...
  • module recaptcha-client
    • URL / There's more...
  • MyISAM / There's more...

N

  • Netlib repository
    • URL / Getting ready
  • noise signal
    • smoothing / Smoothing the noise in real-world data, How to do it..., How it works..., There's more...
  • NUMBEO
    • URL / How it works...
  • NumPy
    • about / Getting ready
    • URL / Getting ready
    • installing / Getting ready, How it works...
    • documentation, URL / How it works...
  • numpy.correlate function / Getting ready
  • NumPy arrays
    • image data, importing into / Importing image data into NumPy arrays, How to do it..., How it works..., There's more...

O

  • object-oriented (OO) approach / How it works...
  • OO API
    • and pyplot, differentiating between / Understanding the difference between pyplot and OO API, Getting ready, How to do it..., How it works...
  • OpenGL
    • used, for animation / Animating with OpenGL, Getting ready, How to do it..., How it works..., There's more...
    • animation basics / Getting ready
  • OpenRefine
    • URL / There's more...
  • Optical Character Recognition (OCR) / There's more...
  • outliers
    • data, cleaning up / Cleaning up data from outliers, How to do it..., There's more...

P

  • packages
    • LaTeX system / Getting ready
    • DVI to PNG converter / Getting ready
    • ghost script / Getting ready
  • Pandas
    • data, importing / Importing and manipulating data with Pandas, Getting ready, There's more...
    • data, manipulating / Importing and manipulating data with Pandas, Getting ready, There's more...
  • pie charts
    • about / Making pie charts count
    • used, for data presentation / Getting ready, How to do it...
  • PIL
    • about / Installing Python Imaging Library (PIL) for image processing
    • installing, for image processing / Installing Python Imaging Library (PIL) for image processing, How to do it...
    • reference link / There's more...
    • used, for processing images / Processing images with PIL, Getting ready, How it works..., There's more...
  • Pillow
    • URL / There's more...
  • pip
    • about / Getting ready
  • Plot.ly
    • about / Introduction
    • URL / Introduction
  • plot line styles
    • defining / Defining plot line styles, properties, and format strings, How to do it..., How it works...
  • plot types
    • bar / Defining plot types – bar, line, and stacked charts, How to do it..., How it works..., There's more...
    • line / Defining plot types – bar, line, and stacked charts, How to do it..., How it works..., There's more...
    • stacked charts / Defining plot types – bar, line, and stacked charts, How to do it..., How it works..., There's more...
  • point
    • reference link / How it works...
  • polar bar
    • used, for visualizing filesystem tree / Visualizing the filesystem tree using a polar bar, How to do it..., How it works...
  • polar plots
    • drawing / Drawing polar plots, How to do it..., How it works...
  • properties
    • defining / Defining plot line styles, properties, and format strings, How to do it..., How it works...
  • properties, matplotlib.lines.Line2D class
    • alpha / How it works...
    • color (c) / How it works...
    • dashes / How it works...
    • label / How it works...
    • linestyle (ls) / How it works...
    • linewidth (lw) / How it works...
    • marker / How it works...
    • markeredgecolor (mec) / How it works...
    • markeredgewidth (mew) / How it works...
    • markerfacecolor (mfc) / How it works...
    • markersize (ms) / How it works...
    • solid_capstyle / How it works...
    • solid_joinstyle / How it works...
    • visible / How it works...
    • xdata / How it works...
    • ydata / How it works...
    • Zorder / How it works...
  • properties, matplotlib.text.Text
    • family / Getting ready
    • size / Getting ready
    • fontsize / Getting ready
    • style / Getting ready
    • fontstyle / Getting ready
    • variant / Getting ready
    • weight / Getting ready
    • fontweight / Getting ready
    • stretch / Getting ready
    • fontstretch / Getting ready
    • fontproperties / Getting ready
  • proTeX / Getting ready
  • py.plot method / How it works...
  • pycrypto / There's more...
  • Pyglet / Getting ready
  • PyPi
    • URL / There's more...
  • pyplot
    • and OO API, differentiating between / Understanding the difference between pyplot and OO API, Getting ready, How to do it..., How it works...
  • Python
    • URL / Importing data from Microsoft Excel files
    • format characters, URL / How it works...
  • Python(x,y)
    • about / Getting ready
    • reference link / How to do it...
  • Python Distribution Utilities
    • about / How it works...
  • Python Imaging Library (PIL) / How to do it...
  • Python matplotlib library
    • used, for processing image channels / Displaying images with other plots in the figure, How it works..., There's more...

R

  • real-world data
    • noise signal, smoothing / Smoothing the noise in real-world data, How to do it..., How it works..., There's more...
  • reCAPTCHA
    • URL / There's more...
  • requests module
    • installing / Installing a requests module
  • rotate_axes method / Getting ready

S

  • SageMath
    • about / Getting ready
  • save method / How it works...
  • scatterhist() function / There's more...
  • scatter plots
    • drawing, with colored markers / Drawing scatter plots with colored markers, How to do it..., How it works...
    • about / Using scatter plots and histograms
    • using / Getting ready, How to do it..., How it works..., There's more...
  • scikit-image
    • URL / There's more...
    • auto examples, URL / There's more...
  • SciPy
    • installing / Getting ready, How to do it..., How it works...
    • about / Getting ready
  • shadow
    • adding, to chart line / Adding a shadow to the chart line, How to do it..., How it works...
  • sine and cosine plot
    • drawing / Drawing simple sine and cosine plots, How to do it...
  • size
    • setting, of axis labels / Setting the transparency and size of axis labels, How it works...
  • spectrograms
    • about / Understanding spectrograms
    • using / How to do it...
    • working / How it works..., There's more...
  • spines
    • moving, to center / Moving spines to the center, How to do it..., How it works...
  • stacked plots
    • creating / Making stacked plots, Getting ready, How to do it..., How it works...
  • Standard Deviation
    • calculating / There's more...
  • Standard Error
    • calculating / There's more...
  • standard SQL
    • URL / There's more...
  • stem() function / How to do it...
  • stem plot
    • about / Creating stem plot, How to do it...
    • creating / How to do it..., How it works...
    • formatters, configuring with / How to do it...
  • streaming data sources
    • reading / Reading streaming data sources, How it works..., There's more...
  • streamlines, vector flow
    • drawing / Drawing streamlines of vector flow, How to do it..., How it works..., There's more...
  • struct module
    • URL / Importing data from fixed-width data files
  • style
    • matplotlib, customizing with / Customizing matplotlib with style, How to do it..., How it works...
  • subplot() / Getting ready
  • subplots
    • using / Using subplots, Getting ready, How it works..., There's more...

T

  • tab-delimited files
    • data, importing from / Importing data from tab-delimited files, How it works...
  • Table Visualization / How to do it...
  • tab separated values (tsv) / How to do it...
  • TeX Live / Getting ready
  • text
    • rendering, with LaTeX / Rendering text with LaTeX, How to do it..., How it works..., There's more...
  • text property
    • using / Making use of text and font properties, Getting ready, How to do it..., How it works...
  • ticks
    • setting / Setting ticks, labels, and grids, How to do it...
  • to_csv method / How it works...
  • transforms
    • using / There's more...
  • transparency
    • setting, of axis labels / Setting the transparency and size of axis labels, How it works...

U

  • under-plot area
    • filling / Filling an under-plot area, How to do it..., How it works...

V

  • vector flow
    • streamlines, drawing / Drawing streamlines of vector flow, How to do it..., How it works..., There's more...
  • virtualenv
    • about / Installing virtualenv and virtualenvwrapper
    • installing / Getting ready, How to do it...
  • virtualenvwrapper
    • installing / Getting ready, How to do it...
    • about / Getting ready
    • reference link / Getting ready

W

  • W3CCSSLevel1 specification
    • URL / Getting ready
  • whisker plot
    • creating / Making a box-and-whisker plot, How to do it..., How it works...
  • WIMP
    • URL / Processing images with PIL
  • Windows
    • matplotlib, installing on / Installing matplotlib on Windows, How to do it...
  • WYSIWYG
    • URL / Processing images with PIL

Y

  • Yorick
    • URL / Getting ready
lock icon The rest of the chapter is locked
arrow left Previous Section
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
Visually different images