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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 35

  • @jingyiwang5113
    @jingyiwang5113 2 года назад

    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.

  • @sandipansarkar9211
    @sandipansarkar9211 3 года назад +1

    nice video to clear the basics of matplotlib

  • @zakariaabderrahmanesadelao3048

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

  • @mohammadnawaz3758
    @mohammadnawaz3758 3 года назад +2

    Love your videos! Keep doing more!

  • @masoudpesaran9721
    @masoudpesaran9721 Год назад

    Gr8 explanation.

  • @VikashKumar-mu1ui
    @VikashKumar-mu1ui Год назад

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

  • @hrperformance
    @hrperformance Год назад

    Really really appreciate this! Thanks so much

  • @abu.selim26
    @abu.selim26 3 года назад +1

    Thank you soo much dear

  • @lydiamadouni5280
    @lydiamadouni5280 3 года назад +1

    oh thank you ! so helpful

  • @chanellioos
    @chanellioos 2 года назад

    Kimberly Fessel is awesome :)

  • @pablocastroperez9758
    @pablocastroperez9758 Год назад

    Thank you :)

  • @SomeOne-rx2xw
    @SomeOne-rx2xw 2 года назад

    thank you! well explained

  • @SciHeartJourney
    @SciHeartJourney 3 года назад

    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!

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Oh yes, scrolling through data happens pretty often! Glad to hear I helped 😄

  • @yusuffajarulloh4671
    @yusuffajarulloh4671 3 года назад +1

    ccooolll, thank you

  • @PP-fh2mk
    @PP-fh2mk 3 года назад +1

    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

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Yes, subplots are definitely tricky! Keep in mind that the figure's figsize refers to the overall dimensions (for all subplots), so you may need to make it bigger to accommodate all subplots. If you are having issues with figures and text running into each other, check out the pyplot command subplots_adjust() (matplotlib.org/3.3.4/api/_as_gen/matplotlib.pyplot.subplots_adjust.html). For example, to make the subplots farther apart you can add width spacing by adding the code plt.subplots_adjust(wspace=0.4) to your figure.

  • @vyacheslavkapitonov9677
    @vyacheslavkapitonov9677 3 года назад +1

    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

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +2

      Hi there - for sure - my matplotlib videos contains mostly one-off tips at this time, though I am considering putting together a more full-length course in the future. You may want to check out Corey Schafer's matplotlib tutorial videos since they are more long-form content (ruclips.net/p/PL-osiE80TeTvipOqomVEeZ1HRrcEvtZB_). You could also have a look at the matplotlib gallery (matplotlib.org/stable/gallery/index.html) - lots of great examples there. I got significantly better at matplotlib by just creating lots and lots of plots and then looking up whatever small thing I needed at the time. And matplotlib also has a very active Twitter account. I sometimes learn fun extras from what they post or retweet. Hope that helps!

  • @SciHeartJourney
    @SciHeartJourney 3 года назад

    Thank you Ma'am!

  • @karangusain7933
    @karangusain7933 2 года назад

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

  • @Mockingbirdrye
    @Mockingbirdrye 2 года назад

    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!

  • @themomentsofvalorant9878
    @themomentsofvalorant9878 3 года назад

    Thank You.

  • @pailasaisravan5423
    @pailasaisravan5423 2 года назад

    matplotlib.rcParams["figure.figsize"]=(20,10)
    instead of plt can we use matplotlib ??? and what is the difference ??

  • @anantpatel5444
    @anantpatel5444 3 года назад

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

  • @Fitbrahman7
    @Fitbrahman7 11 месяцев назад

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