How to Export Your Plots
So we’re going to say, this is the plot, and you assign it to this
plot variable, and then you can call the
.save() method on it. Each plot object has this
.save() method, and then you just need to pass it a name.
This could be
"classes_xkcd.png". Then, optionally, you can also pass
dpi (dots per inch), so you can tell it how big and what good quality you want the plot to be. And if you run this, you don’t see any output here. There’s a couple of warnings.
01:10 And this is how you export your plots and save them as separate files with plotnine. In the next lesson, which is going to be the final lesson of the course, you’re going to quickly go over all the topics that you covered in this course and just have a quick summary and recap and close out the course. See you there!
Become a Member to join the conversation.