-1

Can we use something like this plt.savefig('graph.graph')???

If not then what can be the proper way to save the graph at local storage but not in image or pdf format. I want to store graphs.

Vidhi
  • 1
  • 1

1 Answers1

0

Assuming you are using Matplotlib,

savefig(fname, dpi=None, facecolor='w', edgecolor='w',
        orientation='portrait', papertype=None, format=None,
        transparent=False, bbox_inches=None, pad_inches=0.1,
        frameon=None, metadata=None)

refer the documentation to understand further: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html

Edit:

Refer this answer to store graph's data How to Store Graphs?

  • Hi and welcome to SO @Shaunak Deshpande! To get the best result and feedback, I recommend reading this article: https://stackoverflow.com/help/how-to-ask – Ben Löffel Aug 27 '21 at 07:45