1
00:00:00,720 --> 00:00:01,900
Excellent, excellent.

2
00:00:01,920 --> 00:00:03,660
I knew I could count on you.

3
00:00:04,260 --> 00:00:05,130
Hello, dear friends.

4
00:00:05,580 --> 00:00:09,770
So you remember that we learned how to customize our figure in matplotlib library.

5
00:00:09,780 --> 00:00:15,270
So in this lesson, we're going to learn how to customize our graphic and matplotlib library.

6
00:00:15,750 --> 00:00:16,680
So let's get started.

7
00:00:18,420 --> 00:00:23,610
As always, we will need to import our library's first import numpty as N.P..

8
00:00:26,360 --> 00:00:30,200
Import matplotlib, DCPI, plot as peel tea.

9
00:00:34,860 --> 00:00:40,410
And, of course, we will need to end a romantic statement for displaying our plot outputs inside the

10
00:00:40,410 --> 00:00:45,360
Jupiter notebook itself, precent matplotlib in line.

11
00:00:48,480 --> 00:00:55,230
OK, so now we can define our array object, so this time we will use some random values to create our

12
00:00:55,230 --> 00:01:00,810
object X equals and put out random dot rand end.

13
00:01:02,470 --> 00:01:04,300
One, 12, five.

14
00:01:07,620 --> 00:01:08,730
Y equals.

15
00:01:10,360 --> 00:01:12,820
And beat out random that ran and.

16
00:01:14,630 --> 00:01:16,520
One, 10, five.

17
00:01:18,110 --> 00:01:19,400
So our razor ready.

18
00:01:19,760 --> 00:01:25,460
And as you know, if we can use the random method, our variables will always have different values.

19
00:01:25,460 --> 00:01:30,860
So it means that of your arrays are different than mine, which they will be.

20
00:01:30,890 --> 00:01:31,670
Don't worry about it.

21
00:01:32,270 --> 00:01:32,600
All right.

22
00:01:32,600 --> 00:01:33,350
So let's move on.

23
00:01:34,810 --> 00:01:38,770
So let's define our figure object figure equals plot, not figure.

24
00:01:43,520 --> 00:01:46,610
And define our axes, axis equals.

25
00:01:48,290 --> 00:01:49,160
Figure Dot.

26
00:01:50,420 --> 00:01:51,770
And axes.

27
00:01:55,060 --> 00:01:57,400
Zero zero one one.

28
00:01:58,740 --> 00:02:03,120
So now let's draw our plot axes, dot plot.

29
00:02:05,060 --> 00:02:07,430
X y two.

30
00:02:08,670 --> 00:02:11,340
All right, let's run the code and there's a result.

31
00:02:12,480 --> 00:02:14,220
So let's change the color.

32
00:02:14,700 --> 00:02:15,240
I don't know.

33
00:02:15,250 --> 00:02:17,640
Green color equals green.

34
00:02:21,350 --> 00:02:22,160
So what else?

35
00:02:23,030 --> 00:02:28,280
Well, with the help of line with as our parameter, we can change our plot width.

36
00:02:28,760 --> 00:02:29,720
So let's try that out.

37
00:02:31,200 --> 00:02:32,880
Line with equals four.

38
00:02:36,640 --> 00:02:37,180
What do you think?

39
00:02:38,910 --> 00:02:43,740
All right, so we can also briefly write LW instead of line with.

40
00:02:45,720 --> 00:02:47,130
LW equals four.

41
00:02:48,200 --> 00:02:50,630
OK, so the results are the same, but you get it.

42
00:02:51,320 --> 00:02:53,300
So what about line style?

43
00:02:53,960 --> 00:02:59,900
Yes, with the help of the line style parameter, we can change our plot style.

44
00:03:00,230 --> 00:03:02,510
So let's try that out line.

45
00:03:02,510 --> 00:03:03,890
Style equals.

46
00:03:08,730 --> 00:03:11,910
Or try this one line style equals.

47
00:03:14,560 --> 00:03:18,250
And of course, we can use the abbreviation instead of line style.

48
00:03:18,370 --> 00:03:19,420
Less equals.

49
00:03:20,980 --> 00:03:22,570
And there's the result.

50
00:03:23,940 --> 00:03:26,220
So let's specify marker.

51
00:03:27,120 --> 00:03:31,890
Well, with the help of the marker parameter, we can specify marker equals.

52
00:03:32,520 --> 00:03:35,580
And I prefer to use diamond types.

53
00:03:35,790 --> 00:03:37,380
So Dee.

54
00:03:38,630 --> 00:03:42,860
And this parameter gets as many different types of markers, if you want to check them out.

55
00:03:43,040 --> 00:03:45,140
You can visit this Web site.

56
00:03:47,720 --> 00:03:53,780
But for us, for now, for here, we can also change his markers size and, of course, its color.

57
00:03:53,820 --> 00:03:56,960
So let's try that marker size equals 10.

58
00:04:01,110 --> 00:04:04,320
And markhor face color equals red.

59
00:04:15,250 --> 00:04:21,550
So until we can define an edge color for our marker marker, edge color equals blue.

60
00:04:50,050 --> 00:04:51,700
And we'll specify the with.

61
00:04:53,860 --> 00:04:56,170
Marker Edgeworth equals five.

62
00:05:01,000 --> 00:05:01,570
What do you think?

63
00:05:01,600 --> 00:05:02,530
Not so bad, right?

64
00:05:03,430 --> 00:05:06,730
So our next parameter is set LYM.

65
00:05:07,860 --> 00:05:13,170
So with the help of this parameter, we can change the limit of the X and Y axes.

66
00:05:13,740 --> 00:05:15,690
So let's see that on our example.

67
00:05:17,190 --> 00:05:17,760
All right.

68
00:05:17,760 --> 00:05:25,020
So as you can see, our X axis ends at here and the Y axis ends near here.

69
00:05:26,190 --> 00:05:29,340
So let's type our parameter axes.

70
00:05:29,340 --> 00:05:30,270
Dot set.

71
00:05:32,410 --> 00:05:33,010
Slim.

72
00:05:34,800 --> 00:05:35,910
020.

73
00:05:38,560 --> 00:05:39,820
Axe is not set.

74
00:05:41,290 --> 00:05:42,370
Why limb?

75
00:05:44,400 --> 00:05:46,370
Zero 100.

76
00:05:48,950 --> 00:05:50,210
And there's that result.

77
00:05:51,270 --> 00:05:56,430
So the first value is a starting point, the second value is the endpoint for our axes.

78
00:05:58,720 --> 00:05:59,470
And there you go.

79
00:06:00,220 --> 00:06:01,870
What do you think we are done?

80
00:06:02,320 --> 00:06:07,240
So this is a lesson that we covered how to customize a plot in matplotlib.

81
00:06:08,020 --> 00:06:14,680
Our beautiful matplotlib library provides us with many different types of plotting as well as customizations.

82
00:06:15,670 --> 00:06:18,940
We have learned some of the fundamentals about matplotlib.

83
00:06:19,480 --> 00:06:20,650
But you know something?

84
00:06:21,100 --> 00:06:25,660
I don't mean to burst your bubble, but this is just the tip of the iceberg.

85
00:06:26,170 --> 00:06:29,890
There are just far too many fascinating things about this library.

86
00:06:30,640 --> 00:06:35,280
So we're going to work with some of them in the upcoming videos.

87
00:06:35,290 --> 00:06:38,530
But you do have some things to explore on your own.

88
00:06:39,400 --> 00:06:40,750
So I hope to see in the next video.

89
00:06:41,050 --> 00:06:43,660
And until then, have a really nice day.
