1
00:00:00,710 --> 00:00:01,940
Hello, dear friend.

2
00:00:01,970 --> 00:00:09,020
So in this lesson, we are going to examine some of the basic terms in matplotlib library.

3
00:00:10,070 --> 00:00:11,330
So let's start.

4
00:00:12,970 --> 00:00:14,410
Now, of course, you remember.

5
00:00:15,610 --> 00:00:21,520
And our last lesson, we talked about the pipeline and how to use matplotlib.

6
00:00:22,990 --> 00:00:28,750
So now we need to understand the pipeline, my lab and matplotlib concepts as well.

7
00:00:29,780 --> 00:00:33,440
OK, so what is PI plot and what does it do?

8
00:00:34,460 --> 00:00:40,430
So hopefully remember that when we talked about MATLAB in our last lesson, we said we can do the same

9
00:00:40,430 --> 00:00:43,850
things in Python with the help of matplotlib.

10
00:00:45,050 --> 00:00:45,470
So.

11
00:00:46,770 --> 00:00:50,490
We can use all of these things with the help of pipeline.

12
00:00:51,270 --> 00:00:59,400
So basically Pipeline is a collection of command style functions that make matplotlib work like MATLAB.

13
00:01:00,330 --> 00:01:00,900
You with me?

14
00:01:01,650 --> 00:01:06,540
So each pipelined function makes some change to a particular figure.

15
00:01:07,850 --> 00:01:12,380
So here this table shows that some of the function found the types of plots and pipeline.

16
00:01:13,830 --> 00:01:18,690
And we will use some of them in our following lessons, so don't worry, you don't have to memorize

17
00:01:18,690 --> 00:01:19,320
them all now.

18
00:01:21,170 --> 00:01:26,600
It as well, you might also remember that we used some of them in our previous lesson.

19
00:01:26,690 --> 00:01:27,800
Any of them look familiar.

20
00:01:29,000 --> 00:01:32,780
So if you want to let's see an example again.

21
00:01:34,220 --> 00:01:39,740
So first, we all need to import our library and module import numbI, as in P.

22
00:01:45,570 --> 00:01:50,130
Import matplotlib doormat plot as GLT.

23
00:01:51,620 --> 00:01:57,830
And, of course, we're going to need to enter a magic statement for displaying our plot outputs inside

24
00:01:57,830 --> 00:02:03,530
the Jupiter notebook itself precent matplotlib Inli.

25
00:02:07,930 --> 00:02:16,590
Now we can create an incendiary object between one and nine using the arrange function from the Numpty

26
00:02:16,600 --> 00:02:17,260
Library.

27
00:02:18,480 --> 00:02:22,410
And a X equals and P dot arrange.

28
00:02:26,950 --> 00:02:28,090
One nine.

29
00:02:29,630 --> 00:02:34,460
So our variable serves as values on the X axis of the graph.

30
00:02:36,210 --> 00:02:41,850
Now we're going to need another variable for the Y axis, so let's define it and a Y.

31
00:02:44,160 --> 00:02:46,440
Equals and picked a range.

32
00:02:48,230 --> 00:02:49,730
327 three.

33
00:02:56,280 --> 00:02:59,910
So our two dimensions, X and Y axes are already ready.

34
00:03:00,630 --> 00:03:02,160
So let's try to plot it out.

35
00:03:03,280 --> 00:03:06,790
With the help of the plot function, we can do it.

36
00:03:07,240 --> 00:03:12,610
All right, so Pulte dot plot and a X.

37
00:03:16,780 --> 00:03:18,160
And a Y.

38
00:03:20,560 --> 00:03:21,760
And there's a result.

39
00:03:23,510 --> 00:03:27,230
So now, of course, we can try different types of plots in our plot table.

40
00:03:28,590 --> 00:03:29,940
BLT to bar.

41
00:03:32,410 --> 00:03:34,360
And X and a Y.

42
00:03:36,910 --> 00:03:38,380
And there's a result.

43
00:03:39,190 --> 00:03:41,410
So that's how you get a result for a bar plan.

44
00:03:43,440 --> 00:03:46,860
Now, how about Paltalk, Barack H.

45
00:03:49,870 --> 00:03:50,680
Nax.

46
00:03:52,490 --> 00:03:53,120
Anyway.

47
00:03:57,050 --> 00:03:58,220
And there's that resume.

48
00:03:59,030 --> 00:04:03,200
So this time we'll get the result with a BA plot horizontally.

49
00:04:04,830 --> 00:04:05,880
So let me show you another one.

50
00:04:06,810 --> 00:04:08,490
Polka dot polar.

51
00:04:10,880 --> 00:04:11,510
Aex.

52
00:04:13,520 --> 00:04:14,180
And why?

53
00:04:20,010 --> 00:04:23,430
There's that result, so that's how you get a polar plot.

54
00:04:25,110 --> 00:04:26,460
But that step.

55
00:04:28,640 --> 00:04:29,480
Nax.

56
00:04:31,580 --> 00:04:32,240
And a Y.

57
00:04:36,130 --> 00:04:37,450
And here's the result.

58
00:04:37,570 --> 00:04:39,640
So there's how you get a step, Plott.

59
00:04:40,870 --> 00:04:41,890
All right, so let's move on.

60
00:04:43,870 --> 00:04:45,550
So the other one is piai lab.

61
00:04:46,120 --> 00:04:48,970
So what is Piw Lab and what does it do?

62
00:04:49,900 --> 00:04:56,740
Well, my lab is a module that has a procedural interface to the matplotlib, object oriented, plodding

63
00:04:56,740 --> 00:05:00,970
library, and it gets installed alongside matplotlib.

64
00:05:01,940 --> 00:05:10,070
So basically, my lab is a module within the Matplotlib library that was built to mimic matte labs global

65
00:05:10,070 --> 00:05:10,610
style.

66
00:05:11,690 --> 00:05:18,890
So it exists only to bring a number of functions and classes from both numbI and Matplotlib into the

67
00:05:18,890 --> 00:05:27,170
namespace making for an easy transition for a former MATLAB users who were not used to needing to import

68
00:05:27,170 --> 00:05:27,800
statements.

69
00:05:28,730 --> 00:05:29,750
That's pretty cool, huh?

70
00:05:30,350 --> 00:05:32,180
And it all works seamlessly.

71
00:05:32,930 --> 00:05:36,860
So let's have a look with some of the examples about the pilot module.

72
00:05:38,990 --> 00:05:41,780
So, as you know, we import our module first.

73
00:05:43,210 --> 00:05:44,620
SciLab import.

74
00:05:47,200 --> 00:05:53,110
Now define a new variable named X, and it'll refer to the X axis X equals.

75
00:05:54,170 --> 00:06:00,380
And now we can use our no BS line space method and its value, so we'll let it be well in space.

76
00:06:02,090 --> 00:06:04,660
Minus three, three and 30.

77
00:06:06,270 --> 00:06:11,100
So let's define another variable in Whitehall, refer to the Y, axis Y equals.

78
00:06:12,030 --> 00:06:14,910
So its value is going to be X two.

79
00:06:15,810 --> 00:06:17,510
And now we can use our plot.

80
00:06:17,520 --> 00:06:18,570
So plot.

81
00:06:20,510 --> 00:06:21,500
X y.

82
00:06:22,100 --> 00:06:24,050
And the result is, as you see.

83
00:06:26,000 --> 00:06:31,640
So the beginning pilot was so popular, especially with old MATLAB users, you can see probably too

84
00:06:31,640 --> 00:06:37,400
many examples in usage areas out there, but now Python does not recommend it anymore.

85
00:06:38,090 --> 00:06:47,750
So here you can see the relationship between biolab, matplotlib and implied matplotlib is a library

86
00:06:47,750 --> 00:06:48,710
in Python.

87
00:06:49,430 --> 00:06:57,920
My plot is a module in matplotlib and my lab is a module used just like an interface.

88
00:06:59,250 --> 00:06:59,790
So that's it.

89
00:07:01,230 --> 00:07:08,160
So we covered in this lesson the difference between pilot by plot and matplotlib, because at some point

90
00:07:08,160 --> 00:07:10,710
these terms are going to get confusing.

91
00:07:11,130 --> 00:07:13,450
But now you know how to differentiate.

92
00:07:13,470 --> 00:07:16,560
So we will meet in the next lesson.

93
00:07:16,590 --> 00:07:18,150
Until then, have a nice day.
