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]
your tutorials are great. took so much of time to understand from a book
💯💯💯I loved this tutorial
who needs uni course? You r simply awesome, sir!
In jpg format transparent function doesn't work its only work in .png format , why??
Thanx sir can u make videos on other python libraries
I am getting the error <Figure size 360×360 with 0 Axes>. My saved figure is coming blank. Please suggest modifications.
Thanks Dhaval for the making this topic very easy to understand !
Thank you. Can the chart save/exported to html, or maybe send by email?
Hello,
I tried this code still why my image is getting saved with white background? Please help.
Thanks and regards
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.
Thanks a lot for your effort, help me so much
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.
Why my saved PNG and pdf file is blank.
thanks for you tutorial sir
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.
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 like your playlists
Thank you soooo much @codebasics ..great future ahead..thanx alooott
All the videos in the tutorial are amazing and very beginner friendly. Well Done. Keep up the good work. 🙂
Thanks, you are really good.Keep up the good work.Hope to see more of visualization videos!
Thanks for this playlist.
Sir can you please provide information on django framework
Good
Thanks. That was a great intro. Are you planning to do advanced level matplolib tutorial?
what about if i have to display that plot on webpage
Thank you sir,
In exercise, that figure is not visible. can you please fix that.
Teaching was excellent, keep up the Good work
sir can u pls make videos for other libraries ?
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.