Matplotlib Tutorial 7 – Save Chart To a File Using savefig




[ad_1]

savefig function allows you to save matplotlib chart to different file formats such as jpg, png or pdf. It supports various options such as making transparent background, add padding around a chart, change frame or face color etc.

Topics that are covered in this Video:
0:00 Introduction
0:09 savefig() function

Populor Playlist:
Data Science Full Course: https://www.youtube.com/playlist?list=PLeo1K3hjS3us_ELKYSj_Fth2tIEkdKXvV

Data Science Project: https://www.youtube.com/watch?v=rdfbcdP75KI&list=PLeo1K3hjS3uu7clOTtwsp94PcHbzqpAdg

Machine learning tutorials: https://www.youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw

Pandas: https://www.youtube.com/watch?v=CmorAWRsCAw&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy

matplotlib: https://www.youtube.com/watch?v=qqwf4Vuj8oM&list=PLeo1K3hjS3uu4Lr8_kro2AqaO6CFYgKOl

Python: https://www.youtube.com/playlist?list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0

Jupyter Notebook: https://www.youtube.com/watch?v=q_BzsPxwLOE&list=PLeo1K3hjS3uuZPwzACannnFSn9qHn8to8

Code link: https://github.com/codebasics/py/blob/master/matpltlib/7_save_chart/7_saving_chart_to_file.ipynb
Website: http://codebasicshub.com/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub

Source


[ad_2]

Comment List

  • codebasics
    January 3, 2021

    your tutorials are great. took so much of time to understand from a book

  • codebasics
    January 3, 2021

    💯💯💯I loved this tutorial

  • codebasics
    January 3, 2021

    who needs uni course? You r simply awesome, sir!

  • codebasics
    January 3, 2021

    In jpg format transparent function doesn't work its only work in .png format , why??

  • codebasics
    January 3, 2021

    Thanx sir can u make videos on other python libraries

  • codebasics
    January 3, 2021

    I am getting the error <Figure size 360×360 with 0 Axes>. My saved figure is coming blank. Please suggest modifications.

  • codebasics
    January 3, 2021

    Thanks Dhaval for the making this topic very easy to understand !

  • codebasics
    January 3, 2021

    Thank you. Can the chart save/exported to html, or maybe send by email?

  • codebasics
    January 3, 2021

    Hello,

    I tried this code still why my image is getting saved with white background? Please help.
    Thanks and regards

  • codebasics
    January 3, 2021

    Hi, sir can you do some advance level in sea-born and Matplotlib please.
    same as alway this course was useful as well. wish you all the best in your life.

  • codebasics
    January 3, 2021

    Thanks a lot for your effort, help me so much

  • codebasics
    January 3, 2021

    To anybody having the file not showing anything, you might be reusing the code from the previous exercise, if that's the case, then you're also probably using the show function. Just move the line with the savefig function before the line with the show function and it should work fine.

  • codebasics
    January 3, 2021

    Why my saved PNG and pdf file is blank.

  • codebasics
    January 3, 2021

    thanks for you tutorial sir

  • codebasics
    January 3, 2021

    Hi There, Could you please help us to understand on how to save multiple char in same pdf file with alignment. So that we can create a Summary Dashboard on the fly.

  • codebasics
    January 3, 2021

    You're a f master, this really helped me, I was getting crazy about it looking for a solution until I find your video. Thanks a lot.

  • codebasics
    January 3, 2021

    #codebasics like your playlists

  • codebasics
    January 3, 2021

    Thank you soooo much @codebasics ..great future ahead..thanx alooott

  • codebasics
    January 3, 2021

    All the videos in the tutorial are amazing and very beginner friendly. Well Done. Keep up the good work. 🙂

  • codebasics
    January 3, 2021

    Thanks, you are really good.Keep up the good work.Hope to see more of visualization videos!

  • codebasics
    January 3, 2021

    Thanks for this playlist.

  • codebasics
    January 3, 2021

    Sir can you please provide information on django framework

  • codebasics
    January 3, 2021

    Good

  • codebasics
    January 3, 2021

    Thanks. That was a great intro. Are you planning to do advanced level matplolib tutorial?

  • codebasics
    January 3, 2021

    what about if i have to display that plot on webpage

  • codebasics
    January 3, 2021

    Thank you sir,
    In exercise, that figure is not visible. can you please fix that.

  • codebasics
    January 3, 2021

    Teaching was excellent, keep up the Good work

  • codebasics
    January 3, 2021

    sir can u pls make videos for other libraries ?

  • codebasics
    January 3, 2021

    Sir u r great, u r my inspiration…. learning a lot from u….plz plan to make videos for financial domain like algo trading,Monte Carlo etc.

Write a comment