How to Make an Area Plot in Python using Bokeh
In this tutorial, we will learn how to create an area plot on a graph using the bokeh library.
Plotting the Area Plots
Area Plots can be defined as the filled regions between two series that share a common area. The Bokeh figure class has two functions, namely:
1. varea() Function:
The varea() function is used for vertically directed areas. It has one "X" coordinate array and two "Y" coordinate arrays, "Y1" and "Y2", which would be filled between.
Syntax for varea() function is:
The varea() function accepts the following parameters:
2. harea() Function:
The harea() function of the Bokeh library is used for horizontally directed areas on a Graph. It has one "Y" coordinate array and two "X" coordinate arrays, "X1" and "X2", which would be filled between.
Syntax for harea() function is:
The harea() function accepts the following parameters:
In this tutorial, we discussed how we could create area plots in vertical and horizontal directions using the varea() and harea() function of the bokeh library in Python.
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week