# Is it possible to extract data from the following density plot? [closed]

Consider the screenshot of some density plot: Its pdf version may be found here. The plot is from this paper (Fig. 4).

Could you please tell me whether Mathematica can extract the data from this plot in the form

{pA, thetaA, number of A}


I have already looked at this question, but I don't understand whether the approach shown there is an image-independent and how to adapt it for my purposes.

I am often facing similar plots, and it is not always possible to ask authors for providing the data. By this example, I would like to learn how to do this by myself.

• I recommend you send an email to the paper's authors and ask them for the data file. They may be happy to provide it. – Roman Nov 18 at 10:31
• @Roman : the problem is that I am often facing similar plots, and it is not always possible to ask authors for providing the data. By this example, I would like to learn how to do this by myself. – John Taylor Nov 18 at 10:34
• The image data contains the color values of the pixel. Your main problem is to identify the colorfunction ? – Ulrich Neumann Nov 18 at 11:36
• @UlrichNeumann : unfortunately to me, I don't understand the code from this answer, mathematica.stackexchange.com/questions/149473/…. Currently, I don't understand anything. – John Taylor Nov 18 at 11:49
• The other issue you have with these sorts of plots, is that the colorfunction is discretised / binned. This means you have a range of values on a logarithmic scale which give a certain color. You could try to match the colour bar to the logarithmic values. This will have large errors though, and this will be made even worse as you don't know the bin size or the range of values that give you a certain colour. I would try to get the data as this is the only way to be able to graph this properly – Dunlop Nov 19 at 4:48