THistSaveAs txt or csv #10474
Labels
fixathon
This issue can be tackled at a ROOT fixathon
good first issue
improvement
in:Graphics
priority:low
Explain what you would like to see improved
I open this to keep track of a suggestion by @lmoneta to save histograms as csv or txt files.
#9491 (comment)
Right now, there are all sorts of workarounds to achieve this (see below), but they are easy to forget and periodically there are new questions on the forum wrt the same thing.
A function doing
TH1::SaveAs(".txt")
would be more user-friendly.
Optional: share how it could be improved
Move TGraph implementation in #9491 to a class THistSaveAs
Setup
Additional context
https://root-forum.cern.ch/t/save-data-points-from-a-histogram-in-a-txt-file/49768/3
https://root-forum.cern.ch/t/save-histogram-in-txt-file/43616/13
https://stackoverflow.com/questions/28970124/cern-root-exporting-data-to-plain-text
https://root-forum.cern.ch/t/save-the-contents-of-histogram-to-text-file/28616/2
https://root-forum.cern.ch/t/histogram-to-ascii/14080/6
The text was updated successfully, but these errors were encountered: