Consider the following figure in .pdf format. For convenience, please find it in .png format below:
Could you please tell me how to digitize it, i.e. extract the grid $\cos(\theta_{K^{\pm}}), P_{K^{\pm}}$, density?
The approach from this question works for .png figures. I tried it for the given figure, but it was inaccurate for the boundaries, as well as did not distinguish colors in the histogram bar carefully. The .pdf should be easier and more accurate for extracting the data, given that it is a vector figure.
pdf = Import["https://www.dropbox.com/s/paowbmpc43m9yil/kaon_spectrum.pdf?dl=1", "PageGraphics"]; data = Cases[pdf, Style[{FilledCurve[_, {pts__}]}, __, FaceForm[color_]] :> {Mean /@ Transpose[pts], color}, All]
which will give you all colored strips in the plot (visualize withGraphics[{#2, Point[#1]} & @@@ data]
). $\endgroup$