Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Data Visualization with Bokeh

You're reading from  Hands-On Data Visualization with Bokeh

Product type Book
Published in Jun 2018
Publisher Packt
ISBN-13 9781789135404
Pages 174 pages
Edition 1st Edition
Languages
Author (1):
Kevin Jolly Kevin Jolly
Profile icon Kevin Jolly

Table of Contents (10) Chapters

Preface Bokeh Installation and Key Concepts Plotting using Glyphs Plotting with different Data Structures Using Layouts for Effective Presentation Using Annotations, Widgets, and Visual Attributes for Visual Enhancement Building and Hosting Applications Using the Bokeh Server Advanced Plotting with Networks, Geo Data, WebGL, and Exporting Plots The Bokeh Workflow – A Case Study Other Books You May Enjoy

Linking multiple plots together

At times, we might want our plots to have the same range of values along the x-and/or y-axes in order to facilitate meaningful comparison of the same range of points across different plots.

We will be working with plot1, plot2, and plot3 as illustrated in the sections before this.

In order to create multiple plots with the same range along the y-axis, we use the code shown here:

#Import the required packages

from bokeh.io import output_file, show
from bokeh.layouts import row

#Creating equal y axis ranges

plot3.y_range = plot1.y_range

#Create the row layout

row_layout = row(plot3, plot1)

#Output the plot

output_file('grid.html')

show(row_layout)

This results in a layout of plots as illustrated here:

Plots 1 and 3 linked together by the same y axis range as plot 3

In the previous code, we gave plot1 the same y-range as plot3. In the resulting...

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}