Export chart as a picture
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Bar Chart - Python - How to Create a Bar Chart
I have a problem while exporting chart as a picture, the result of chart picture just only white blank


1 answers ( 0 marked as helpful)
Hi Alifia,
thanks for reaching out! There is a small error in the lesson, which is causing the error. To fix the issue, please change the order of the two last lines in the code, like so:
plt.savefig("Used Cars Bar.png")
plt.show()
Let me know if you have any further questions!
Best,
365 Eli