How to make a plot on an experimental figure

Click For Summary
The discussion centers on the challenge of overlaying a ListPlot graph onto an experimental figure while ensuring that the (x-y) axes align correctly. The user attempted to use Mathematica for this task but faced difficulties achieving the desired result. A suggested solution involves obtaining the ROOT file used to create the original CMS plot, which would facilitate accurate scaling and alignment of the data. Alternatively, there are tools available that can analyze the existing image to determine the axes' positions, allowing for proper data scaling and integration into the figure. The focus remains on finding effective methods to achieve precise graphical representation and alignment.
Safinaz
Messages
255
Reaction score
8
Hi all,

What is the tool which can add my Listplot graph like:

plot.png


to an experimental figure as following: such that the (x-y) axes coincidence in both figure and graph:

CMS-PAS-HIG-16-002_Figure_007.png

Actually I tried Mathematica as:

Code:
data27 = Import["~/Events/scan.dat"];
idata27 = Table[{data27[[i, 2]], data27[[i, 3]]*10^3}, {i, 1,Length[data27]}];
sh = Show[
  ListLogPlot[idata27, Axes -> True, Frame -> True, Joined -> True],
  PlotRange -> {{150, 1300}, {Log[10], Log[10000]}}, ImageSize -> 600]

mm = Import["~/Desktop/search/CMS-PAS-HIG-16-002_Figure_007.png",
  ImageSize -> 600]

Overlay[{mm, sh}, Alignment -> {-0.4, -0.6}]

But i ended up by:

scanMG.png


So any help to got my graph JUST AS the blue theoretical line appears in the figure ?

Best ..
 

Attachments

  • Figure.png
    Figure.png
    20.4 KB · Views: 505
  • scanMG.png
    scanMG.png
    26.1 KB · Views: 549
Physics news on Phys.org
You'll need ideally the ROOT file used to make the CMS plot, or alternatively some program that can analyze the existing image and figure out where the axes are. There are tools that can do that, but I don't know them. Once you have that you can scale your data to figure out the coordinates of your lines, and add those to the image.
 
  • Like
Likes Safinaz

Similar threads

  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 0 ·
Replies
0
Views
640
  • · Replies 2 ·
Replies
2
Views
1K