How to make a plot on an experimental figure

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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: 527
  • scanMG.png
    scanMG.png
    26.1 KB · Views: 572
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   Reactions: Safinaz