WEBVTT

00:02.010 --> 00:09.690
Hello, everyone, and welcome to this deal from this Teito deal with loan data visualization with matplotlib

00:09.690 --> 00:10.380
liablity.

00:10.530 --> 00:11.490
Let us begin.

00:12.270 --> 00:18.540
The Matplotlib Library is an amazing visualization library for two dimensional plotting.

00:18.780 --> 00:23.610
And it is built on numpty at Ade's for the data, which Chen.

00:23.730 --> 00:26.810
There are two methods in matplotlib library.

00:27.120 --> 00:29.370
First one is the functional method.

00:29.610 --> 00:32.610
And second one is the object oriented method.

00:33.210 --> 00:34.050
Let us understand.

00:34.050 --> 00:35.670
Functional method fast.

00:37.790 --> 00:41.750
First, we have to import the library, read import.

00:43.940 --> 00:45.400
No, B, as.

00:45.720 --> 00:50.550
And B, then import matplotlib

00:53.850 --> 00:57.600
dot by plot as PLDT.

00:58.770 --> 01:09.090
And at the end, Veoh, to import random integer class to do that day from Numpty Dot random.

01:10.950 --> 01:19.600
Import random integer that is around and be great.

01:19.860 --> 01:20.990
No, the cube.

01:25.700 --> 01:35.780
For the data visualization V, how to define X and Y variable, A X is equal to ENPI Dot Lin space.

01:38.960 --> 01:47.570
Here we have to specify three arguments, zero, 10, 20, zero is the lower bound.

01:47.820 --> 01:55.640
Pain is the upper bound and 20 is number of intervals, delay in space returns, evenly spaced numbers

01:55.700 --> 01:57.710
or a specific interval.

01:58.220 --> 02:00.200
And this is the specific interval.

02:00.530 --> 02:01.710
Zero to ten.

02:02.220 --> 02:03.350
Now execute.

02:06.460 --> 02:07.360
Take X.

02:09.450 --> 02:10.080
Great.

02:10.900 --> 02:18.250
So these are the 20 evenly spaced numbers from the interval zero to ten now defined by variable.

02:20.600 --> 02:22.070
VI is equal to.

02:24.350 --> 02:31.290
Random integer zero 50 20 in the cube.

02:33.910 --> 02:35.560
No gick buy variable.

02:38.670 --> 02:42.330
Great here, a little detail is the lower bound.

02:42.540 --> 02:44.250
50 is the upper bound.

02:44.460 --> 02:48.480
And we're selecting 20 random numbers from the interval zero.

02:48.480 --> 02:49.160
250.

02:50.040 --> 02:53.810
No, no, down here in X and Y variable.

02:54.090 --> 02:57.660
These two are the added ENVI variable.

02:57.690 --> 02:59.400
These are the random numbers.

03:01.290 --> 03:09.010
Let us start them define white is equal to ENPI dot method sort.

03:10.540 --> 03:14.910
And in parentheses, again, vi execute.

03:16.760 --> 03:18.090
No, take Devi.

03:20.030 --> 03:20.660
Great.

03:21.380 --> 03:24.590
Now, these are random numbers, add in ascending order the.

03:25.700 --> 03:27.280
Let us visualize the data.

03:29.430 --> 03:33.600
They built the dot plot.

03:36.190 --> 03:39.130
And embattled tiffy's ex Guama Vij.

03:43.420 --> 03:47.460
So this is the output excesses, why axes?

03:47.770 --> 03:50.450
And these are the data points here.

03:50.560 --> 03:54.260
We can add X label, VI label and title.

03:54.480 --> 04:01.240
Let us see how it don't enter a BLT dot x label.

04:03.900 --> 04:07.250
Specify X label as x axes.

04:08.100 --> 04:09.960
You can specify any string.

04:11.470 --> 04:14.430
Then PLDT dot vilely.

04:14.480 --> 04:14.840
But.

04:18.700 --> 04:19.780
Why exs?

04:22.120 --> 04:27.010
Then specify title BLT dot title.

04:32.310 --> 04:36.600
X versus Y Axes argued.

04:38.730 --> 04:39.290
Great.

04:40.320 --> 04:45.570
You can see X-axis VI, XII's X versus Y axes.

04:46.140 --> 04:47.540
This is X level.

04:47.700 --> 04:48.960
This is Viall label.

04:49.140 --> 04:51.310
And this is the title here.

04:51.330 --> 04:52.950
We can hide these details.

04:53.700 --> 04:58.770
To do that, a BLT dart shoe.

04:59.770 --> 05:00.810
It's cute.

05:01.160 --> 05:01.570
Again.

05:04.450 --> 05:05.080
Great.

05:05.680 --> 05:10.250
When we use dot show method, then it shows deep graph like these.

05:10.630 --> 05:13.420
And before that, it is only printing.

05:14.020 --> 05:16.450
In this graph, we can add more details.

05:16.630 --> 05:17.650
Let us see how.

05:19.390 --> 05:25.100
Go to any browser and search matplotlib documentation.

05:27.020 --> 05:28.460
Click on different link.

05:29.590 --> 05:32.280
So this is the matplotlib documentation.

05:33.390 --> 05:36.390
No search blocked.

05:37.850 --> 05:38.840
Scroll down.

05:39.230 --> 05:43.870
Click on these matplotlib dot by plot dot blog.

05:46.160 --> 05:46.760
Great.

05:47.420 --> 05:55.040
Here we are selecting matplotlib, not by plot dot plot, because we're plotting the graph using this

05:55.040 --> 05:56.840
method dot plot.

05:57.680 --> 06:00.920
You can see here this method dot plot.

06:02.340 --> 06:04.640
And that the details about this matter.

06:05.100 --> 06:06.120
Scroll down.

06:06.960 --> 06:09.320
These are the details about barometer's.

06:09.660 --> 06:14.090
We can specify X VI then all other parameters.

06:14.850 --> 06:16.440
And these are the proper deeds.

06:17.560 --> 06:22.120
Property and description, we will see some of these properties.

06:22.640 --> 06:24.300
First one is the color.

06:25.380 --> 06:26.460
No, scrawled on.

06:27.810 --> 06:30.900
These out of the character names for these Gallas.

06:33.460 --> 06:34.660
Specify Galut.

06:37.900 --> 06:39.380
I will specify M.

06:41.710 --> 06:43.640
This one, Magin Top.

06:44.770 --> 06:45.680
In the Gude.

06:47.540 --> 06:48.140
Great.

06:48.650 --> 06:52.130
Now, the data points are in this gala, Magin Dot.

06:52.640 --> 06:55.370
Similarly, we can specify other Golos.

06:56.740 --> 06:58.210
And these are the options.

06:58.900 --> 06:59.950
Now scroll up.

07:01.650 --> 07:04.600
We will specify this property lines.

07:06.030 --> 07:11.220
And these are the options, dash, double dash and all other options.

07:15.740 --> 07:17.030
These are the options.

07:23.730 --> 07:28.820
Lifestyle is equal to double dash executed.

07:30.700 --> 07:31.870
This is the output.

07:32.410 --> 07:33.880
You can try other options.

07:33.970 --> 07:38.530
Also, let us see one more parameter marker.

07:43.490 --> 07:44.420
Scrawled on.

07:45.630 --> 07:47.190
So do that of the characters.

07:47.310 --> 07:49.980
And this is the description, Fotomat, because.

07:52.070 --> 07:53.690
We will specify this marker.

07:53.920 --> 07:54.590
Star.

07:59.140 --> 08:02.330
Monica is equal to Star.

08:04.320 --> 08:05.230
A cute.

08:06.890 --> 08:10.850
So these are the markers we can increase marker sites.

08:11.000 --> 08:11.690
Also.

08:16.640 --> 08:18.950
This one marker, Sayed's.

08:27.020 --> 08:28.880
Market decides is equal to.

08:30.080 --> 08:32.010
We have to specify a number.

08:37.100 --> 08:39.980
Increase the number 10.

08:42.730 --> 08:44.650
Marker size is increased.

08:45.580 --> 08:48.100
Similarly, we can increase line weight.

08:49.210 --> 08:51.460
This one line vid.

08:58.180 --> 09:00.260
I will specify one point for you.

09:08.480 --> 09:10.250
Landward is increased.

09:11.800 --> 09:18.310
So there are all other properties you can take all of these for the property line.

09:19.150 --> 09:22.140
We can specify land with our LW.

09:23.460 --> 09:27.660
Like this, instead of line vid, we can type LW.

09:29.950 --> 09:30.880
Same result.

09:41.130 --> 09:43.340
So these are the basics about depleting.

09:45.280 --> 09:49.050
Let doesn't understand multiple plots on same canvas.

09:58.560 --> 10:08.650
For the multiple plotting B, how to use a metal pipe PLDT dart subplot here, we will specify three

10:08.710 --> 10:14.930
arguments, one to one number of rows.

10:15.160 --> 10:16.420
Number of columns.

10:16.600 --> 10:20.930
And the plot that we add offering plot something here.

10:22.210 --> 10:29.890
BLT Dot Plot X and VI specify color

10:32.420 --> 10:34.390
read execute.

10:35.990 --> 10:37.160
This is the output.

10:37.850 --> 10:41.990
I know it is a little bit confusing if you haven't understood anything.

10:42.140 --> 10:43.180
Then don't worry.

10:44.460 --> 10:50.010
Add one more subplot, BLT Dodd subplot.

10:52.510 --> 10:58.360
Number of photos is equal to one number of columns is equal to two.

10:58.810 --> 11:06.370
And the canvas that we are lifting is to previously be where they are fitting first canvas.

11:08.170 --> 11:12.700
Now, plourde BLT dot plot.

11:15.120 --> 11:16.740
X vye.

11:19.890 --> 11:20.040
And.

11:22.050 --> 11:23.970
And that is Magin Dopp.

11:26.450 --> 11:27.020
Great.

11:27.680 --> 11:34.550
Now, you can understand clearly one drew here, also one drew and two columns.

11:34.700 --> 11:36.320
These are the two columns.

11:36.800 --> 11:44.210
He had a very offering canvas one then Vieri offering canvas to similarly, you can specify a different

11:44.210 --> 11:50.210
number of rules, different number of columns, and you can offer canvas accordingly.

11:50.780 --> 11:55.180
So this is all about deep plotting, multiple plots on same canvas.

11:55.550 --> 12:00.050
To do that, we have to use this method subplot method.

12:00.710 --> 12:05.660
For more details, you can type here in matplotlib documentation.

12:09.430 --> 12:10.480
Subplot.

12:13.960 --> 12:17.530
Matplotlib don't buy plot, dots upload.

12:19.670 --> 12:21.560
Here to will get all the details.

12:21.890 --> 12:23.410
These are the parameters.

12:24.460 --> 12:26.560
Then property and description.

12:28.540 --> 12:30.010
And all other details.

12:35.530 --> 12:43.120
So this data visualization tutorial here in this tutorial VLT understood how to plot digraphs.

12:43.750 --> 12:47.890
To do that, we have to use this matter dot plot method.

12:48.760 --> 12:53.560
And after that, we help unless to multiple plotting on same canvas.

12:54.400 --> 12:58.540
And to do that, we have to use this method dots, a blood method.

12:59.830 --> 13:03.150
I will see you in the next data visualization ordeal.

13:03.590 --> 13:05.320
Then, happy learning.
