1
00:00:00,000 --> 00:00:08,719
Alright, let's sum it up now. So we were
able to generate graphs and you saw that

2
00:00:08,719 --> 00:00:15,179
until now we generated like single
graphs so for instance here you'll see

3
00:00:15,179 --> 00:00:22,289
a line graph. Now if you want to combine
multiple glyphs in one plot, that

4
00:00:22,289 --> 00:00:30,359
would be very simple. So let's say you've
got two plots. You add a scatter plot

5
00:00:30,359 --> 00:00:36,840
there so you'll need to add a circle glyph,
so just below this line glyph, or above

6
00:00:36,840 --> 00:00:40,680
that, it doesn't matter.
So circles and with these coordinates or

7
00:00:40,680 --> 00:00:49,070
we can change them so let's say place
double this X axis. I times 2

8
00:00:49,070 --> 00:00:59,219
for I in this, a list which closes here,
so and then this should be the size.

9
00:00:59,219 --> 00:01:11,030
Size let's say eight and olive, so this is
how you get multiple glyphs in one plot.

10
00:01:11,030 --> 00:01:15,869
That was very easy and so I believe I
gave you a good introduction to the

11
00:01:15,869 --> 00:01:22,140
Bokeh library and I believe you see
its potential so it's great to actually

12
00:01:22,140 --> 00:01:26,790
use Bokeh for generating visualizations.
Now if you want to go

13
00:01:26,790 --> 00:01:32,150
deeper into Bokeh, so you may want to
have to plot different types of graphs,

14
00:01:32,150 --> 00:01:37,619
I'd point you first to this resource,
so this is the documentation, Bokeh

15
00:01:37,619 --> 00:01:42,360
documentation and this is about plotting
with glyphs, so what you have here is

16
00:01:42,360 --> 00:01:48,540
various examples, there, we used this one
actually and other ones as well, lines,

17
00:01:48,540 --> 00:01:54,720
and you can also close patches, so
basically you pass the coordinates of

18
00:01:54,720 --> 00:02:01,979
each of the points of the polygon here and
Bokeh will draw the polygon there.

19
00:02:01,979 --> 00:02:09,869
All these are the basic things, and here
I'd like to stop a little bit, so this is

20
00:02:09,869 --> 00:02:15,780
called a quadrant plot actually.
This one here, so instead of passing a circle

21
00:02:15,780 --> 00:02:23,760
or line you'll pass a quad and what this
consists of is the top, so the upper

22
00:02:23,760 --> 00:02:29,310
corner of your quadrant so for instance
this  first quadrant here has a

23
00:02:29,310 --> 00:02:35,819
top border of 2 and the bottom of 1.
So it's bordered with 1 and 2 and

24
00:02:35,819 --> 00:02:44,459
then left would be 1, and right 1.2.
So 1 left and 1.2 right.

25
00:02:44,459 --> 00:02:50,670
And then you have the next
quadrant which is this one here with its

26
00:02:50,670 --> 00:02:57,060
coordinate as well and so one. And here's
the colors, so you can use CSS color

27
00:02:57,060 --> 00:03:02,910
codes if you want besides the, besides
using the color strings like red,

28
00:03:02,910 --> 00:03:08,250
orange, and yellow and so on. So the
reason I stopped at this plot is that we

29
00:03:08,250 --> 00:03:13,130
will be using this plot to actually
visualize the times for our video

30
00:03:13,130 --> 00:03:18,810
program, so the times when an object
enters the video frame and when the

31
00:03:18,810 --> 00:03:22,470
object exits the video frame, so it would
be great if you start thinking about

32
00:03:22,470 --> 00:03:28,320
this now how you're going to use, make
use of the CSV file that we generated in

33
00:03:28,320 --> 00:03:34,820
the video program earlier and plot that
file in in a similar graph like this one.

34
00:03:34,820 --> 00:03:39,870
So there are some tricks there and I
don't expect you to fully solve it but

35
00:03:39,870 --> 00:03:46,590
it's good to think about that. And you
also have this gallery here so the

36
00:03:46,590 --> 00:03:52,410
Bokeh gallery. Here you have some
beautiful plots, so you've got the

37
00:03:52,410 --> 00:04:00,600
histogram. If you click one of these so
for instance how to make this map, so you

38
00:04:00,600 --> 00:04:05,040
can simply copy this code and paste it
in your script and run it and you'll get

39
00:04:05,040 --> 00:04:10,290
the same map. That's what I wanted to
teach you about Bokeh and we'll be

40
00:04:10,290 --> 00:04:14,430
using it later
as I said for visualizing these times

41
00:04:14,430 --> 00:04:20,000
when an object is moving in our video
frame in front of our webcam, so I'll

42
00:04:20,400 --> 00:04:21,000
talk to you later.

