Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Python Data Visualization Cookbook (Second Edition)

You're reading from  Python Data Visualization Cookbook (Second Edition)

Product type Book
Published in Nov 2015
Publisher
ISBN-13 9781784396695
Pages 302 pages
Edition 1st Edition
Languages

Table of Contents (16) Chapters

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

Drawing barbs


A barb is a representation of the speed and direction of wind, and is mainly deployed by meteorology scientists. In theory, they can be used to visualize any type of two-dimensional vector quantities. They are similar to arrows (quivers), but the difference is that arrows represent vector magnitude by the length of the arrow, while barbs give more information about the vector's magnitude by employing lines or triangles as increments of magnitude.

We will explain what barbs are, how to read them, and how to visualize them using Python and matplotlib. Here's a typical set of barbs:

In the preceding diagram, the triangle, also known as flag, represents the largest increment.

A full line or barb represents a smaller increment; a half line is the smallest increment.

The increments are in the order of 5, 10, and 65 for a half-line, line, and triangle, respectively. The values here represent, for meteorologists at least, wind speed in nautical miles per hour (knots).

We ordered the barbs...

lock icon The rest of the chapter is locked
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}