Hello, everyone, and welcome to this bitin tutorial in previous Tutorial V, how understood subplots
metalhead enlisted Odille.
We will understand FIGGER Sides, Aspect Ratio and BPI.
Let us begin first import the library reads.
Then define X and Y variables.
Great.
Now define the object figure.
Fig is equal to BLT dot figure.
So these are the arguments that began in Daraa, specify figure sides.
Three comma, do we have to specify figure sites in the form of a couple like these vid and hide after
that specified DPA?
Hundred
DPA stands for Dortch, but INJ.
Now add the axis X is equal to Big Dot.
Ad exs.
One, one didn't blog.
X.com ivi execute.
Great.
So this is the output.
We can change the figure sides.
Change Veidt.
Now, David, it's increased.
Ginger Haid.
It is also increased.
So this is how we can specify figure sides.
We can do the same thing with these subplots.
Also, let us see how the defining figure object, then access BLT dot subplots.
Here we will specify three parameters.
Number of rules.
Number of columns and figure sides.
And growth is equal to one and calls is equal to two.
And figure size is equal to, say, one comma to No, two deep plotting axes.
Index zero dot plot.
X comma.
Y again.
Xs index.
One block.
X and Y execute.
Great.
So here we have specified number of rows is equal to one and number of columns is equal to two.
And figure aside, seven comma to seven, comma two.
Let us understand how to save the figure.
The object vague execute.
So this is the fig object.
To save the figure type object, fig, dot, selvig, fig.
Specify the name.
I will enter my pick.
Dot, P and G.
This is the format for the picture.
You can specify other formats also like DPD and PD of then specified.
The API.
Hundred execute.
We have to specify name in single code or double code.
Execute.
Again, great.
Let us take this figure.
This one, my big dot, PMG.
Here you can see.
So we have successfully saved this figure as my pig duppy Angie.
Let us understand how to specify X label via label and title.
Defined object fic, BLT, dog forgood.
Then add the axis BLT Dodd, add exs zero zero one one after that, too deep plotting a extort plot
X versus Y.
No, we can specify X, label, Y label and title type X.
Dodd said X label.
X exes.
Didn't specify bilabial.
VI EXs didn't specify title state underscore title.
X versus Y execute.
We have to specify fig dot, add axes.
No execute.
Again, great.
X, X is Y, X's, X versus Y.
So this way we can specify X label via label and title.
Let us understand how to specify delay duns.
Defined object fic BLT Dot figured.
Then add the exs, fig dot, add exs.
Zero zero one one.
Then do the plotting a extort plot.
X vs..
X Square specified the label.
X vs. X squared.
Copy this line based.
Experts excuse.
And at the end, specify a extort legend.
Execute.
Great X vs. X Square.
This one blue line and X versus X Q this one orange line with DeLay dance, we can understand the graph
more clearly.
We can change the location of legen.
Let us see how.
Go to matplotlib documentation.
These are the location goals from zero to ten.
And these are these things.
Zero four based.
Then one for a polite.
Two for upper left and so on.
Specified zero.
This is far based location.
Didn't specify one.
A parade then specified two for the upper left.
Great.
We will specify one more, this one six center left.
Centre left location is equal to zero is the best.
This one based.
So this is all about specifying legends.
Let us revise what we have learned in District Odille.
First of all, understood how to specify figure size and BPI figure size in the form of a double weight
and height.
We can do same for this sub plots like these.
After that, we help understood how to save a figure.
Then we have learned how to specify X label via label and title.
And at the end, we help understood how to specify delayed turns.
So despite antidotal on figure sites, aspect ratio and BPI NCR, I will see you in the next one till
then.
Happy learning.