How to change the matplotlib figure size with figsize and rcParams || Matplotlib Tips

preview_player
Показать описание
Use matplotlib to change the figure size with this demo. In this matplotlib tips and tricks video, I show you how to use the matplotlib pyplot figsize argument as well as how to update the size of all figures using matplotlib's rcParams. I walk you through what the size tuple input means and discuss the width and height defaults of matplotlib.

0:00 Introduction
0:21 CODE - Change size of ONE figure
1:22 CODE - Change size of ALL figures

Github Code:

#matplotlib #dataviz #matplotlibtips
Рекомендации по теме
Комментарии
Автор

I am grateful for your explanation in this tutorial. I am now doing an environmental project with a professor. To do the project, I need to figure out how to plot multiple boxplots in one graph using matplotlib. This tutorial is the first step of my exploration. Thank you so much for your wisdom.

jingyiwang
Автор

exactly what I was looking for. Thank you very much for this great video.

zakariaabderrahmanesadelao
Автор

Really really appreciate this! Thanks so much

hrperformance
Автор

nice video to clear the basics of matplotlib

sandipansarkar
Автор

yaa mam really super explanation. and better that we have gethub support.

VikashKumar-muui
Автор

My next problem is that I need a horizonal scroll bar to scroll through a large set of data. The Vertical Bars would be nice too, but yet needed. Thank you for helping me make the plot I have better!

SciHeartJourney
Автор

Is there a way to add a xlim to df.plot(kind='bar); it can be done with plt.bar, but not df.plot. Thank you!

Mockingbirdrye
Автор

Thank you for your videos. Can you give some advice how to learn Matplotlib? Books, course, whatever that can help
I can not put together all your stuff

vyacheslavkapitonov
Автор

cool examples, but when i use subplots (about 9X9 size) plt.rcParams dosen't really works .
is there any way to solve it ?
all texts have overlaped each other

PP-fhmk
Автор

please explain

fig = plt.figure()
fig.add_axes[1, 1, 1, 1]

anantpatel
Автор

rcparams not working its throwing error not found any attribute in matplotlib

karangusain
Автор

matplotlib.rcParams["figure.figsize"]=(20, 10)

instead of plt can we use matplotlib ??? and what is the difference ??

pailasaisravan
Автор

Ma'am u've explained very well but u're very fast.

Fitbrahman