cai
cai

Reputation: 13

How to view a saved matplotlib plot

I have successfully saved my graphs using the plt.savefig() function in the matplotlib library.

When I try to open my graph using vi, the file is there but there are a lot of strange characters. I guess I'm viewing the code and other info rather than the visualization of the graph. How do I see the graph in its pictoral form?

Upvotes: 0

Views: 383

Answers (1)

Gene Callahan
Gene Callahan

Reputation: 135

Vi is a text editor, and can't view images as images. The Windows Paint program should be able to view them, however, or on a Mac, Preview should work.

Upvotes: 3

Related Questions