Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to make a plot on an experimental figure

Tags:
  1. Sep 14, 2016 #1
    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 (Text):
    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 ..
     

    Attached Files:

  2. jcsd
  3. Sep 15, 2016 #2

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: How to make a plot on an experimental figure
  1. How to make this plot? (Replies: 3)

Loading...