Bokeh can be used to plot a scatter plot on a graph. Plotting squares on a graph can be done using the
scatter() method of the
Syntax : scatter(parameters)
- x : x-coordinates of the center of the glyphs
- y : y-coordinates of the center of the glyphs
- marker : signifies the type of the glyph
Returns : an object of class
Example 1 : In this example we will be using the default values for plotting the graph.
Example 2 : In this example we will be plotting multiple scatter points with various other parameters
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course