All right, let's sum it up now. So we
were able to generate graphs. And you
saw that until now we generated, like single
graphs. So for instance, here you will
see a line graph. Now, if you want to
combine multiple glyphs in one plot,
that would be very simple. So let's say
you've got two plots, you will add a
scatterplot there. So you will need to
add a circle glyph. So just below this
line glyph or above that doesn't
matter. So circles and with these
coordinates, or we can change them. So
let's say, let's double this x axis,
i times 2 for i in
[No audio]
this list, which closes here, so and then this
should be the size. Size let's say 8 and then olive.
[No audio]
So this is how you get multiple
glyphs in one plot. That was very easy.
And so I believe I give you a good
introduction to the Bokeh library.
And I believe you'll see its potential.
So it's great to actually use Bokeh
for generating visualizations. Now, if
you want to go deeper into Bokeh, so
you may want to have to plot different
types of graphs, out point you refers to
this resource. So this is documentation
of the Bokeh documentation. And this is
about plotting with glyphs. So what you
have here is various examples that we
use this one actually. And other ones
as well lines, and you can also plot
patches. So basically, you pass the
coordinates of each of the points of the
polygon here and Bokeh will draw the
polygon there. So these are the basic
things here, I'd like to stop a
little bit. So who this is called a
quadrant plot, actually, this one here. So
instead of passing a circle whole line,
you'll pass a quad. What this consists
of is the top so, the upper
border or fewer quadrant. So for
instance, this very first quadrant
here has a top border of 2, and a bottom of
1, so its border with 1 and 2, and
then a left would be 1 and right
1.2. So 1 left, and 1.2 right. And
then you have the next quadrant, which
is this one here, with its coordinates
as well and so on. Here's the colors, so you
can use CSS color codes, if you want.
Besides using color strings,
like red and orange, and yellow, and so on.
So the reason I stopped this plot
is that we'll be using this plot to
actually visualize the times for our
video program. So the times when an
object enters the video frame, when the
object exits the video frame. So it
would be great if you start thinking
about this now, how you're going to use
make use of the CSV file that we
generated in the video program earlier,
upload that file in a similar graph,
like this one. So there are some
tricks there. And I don't expect you
to fully solve this, but it's good to
think about that. And you also have this
gallery here. So the Bokeh gallery.
Here you have some beautiful plots. So
you've got the histogram, if you click
one of these, so for instance, how to
make this map. So you can simply copy
this code and paste it in your script
and run it and you'll get the same map.
That's what I wanted to teach you about
Bokeh, and we'll be using it later, as
I said, for visualizing this times when
an object is moving in our video frame
in front of our webcam. So I'll talk to you later.