# Is it possible to export data from a 2D histogram?

**URL:** <https://root-forum.cern.ch/t/is-it-possible-to-export-data-from-a-2d-histogram/60252>\
**Category:** Newbie\
**Tags:** hist, root\
**Created:** [July 18, 2024, 10:42am UTC](https://root-forum.cern.ch/t/is-it-possible-to-export-data-from-a-2d-histogram/60252 "2024-07-18T10:42:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariana\_Macedo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mariana_macedo/32/37136_2.png) [@Mariana\_Macedo](https://root-forum.cern.ch/u/Mariana_Macedo)\
**Post date:** [July 18, 2024, 10:42am UTC](https://root-forum.cern.ch/t/is-it-possible-to-export-data-from-a-2d-histogram/60252/1 "2024-07-18T10:42:28Z")

</div>

Hi, everybody!  
I am new in ROOT and I have come up with some doubts about graphic analysis.  
I have a pdf with a 2D Histogram, but i don’t have the .root or .c files with all the data to draw the graphic. Is there any way to get the coordinates and density based on the color from every point (or bin, i’m not sure which one is the correct name) on ROOT? I’ve even tried to analyse it on WebPlotDigitizer and PlotDigitizer, but they don’t work with the COLR option, only with 2D XY, so it’s not been very helpful.  
Thank you all!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [July 18, 2024, 11:26am UTC](https://root-forum.cern.ch/t/is-it-possible-to-export-data-from-a-2d-histogram/60252/2 "2024-07-18T11:26:11Z")

</div>

Hi Mariana,

Welcome to the ROOT Community!

I do not think this is really a ROOT-related question. I am not sure it’s possible at all, perhaps a way could be to try to parse the PDF somehow, but again, this would not be ROOT-related.

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 22, 2024, 2:10pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-export-data-from-a-2d-histogram/60252/3 "2024-07-22T14:10:56Z")

</div>

As @Danilo mentioned, ROOT does not provide a way to retrieve the original data from a PDF file. However, depending on the complexity of your plot, it might be possible to visually reconstruct the data. Of course if your plot has fine granularity, and especially if you have several plots to analyze, an automated method should be considered.
