Plotting with glyphs
In this section, we will learn how to plot the following types of plot using glyphs:
- Line plots: Line plots offer a way of visualizing the movements of points along the x-and y-axes in the form of a line. These plots are useful for performing time series analytics.
- Bar plots: Bar plots are useful for indicating the count of each category of a particular column or field in your dataset.
- Patch plots: Patch plots are used to indicate a region of points in a particular shade of color. Such plots can be used to distinguish different groups within the same dataset.
- Scatter plots: Scatter plots are used to visualize the relationship between two variables and to indicate the strength of correlation between them.
Creating line plots
We can plot a simple line plot in Bokeh using the following code:
#Importing the required packages from bokeh.io import output_file, show from bokeh.plotting import figure #Creating our data arrays used for plotting the line plot x = [5,6,7,8,9,10...