How to export graphic to a text file


I’m new in ROOT.
I have a ROOT file with some graphics. I need to export those graphics to text files containing two columns, one for the ‘x’ and another for the ‘y’ axis, for the analysis on another software.
How can I do it?

Thank you!