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

X-Axis is wrong

  1. Sep 22, 2014 #1
    I have a table of data points to be subtracted by another table of data points. I have succeed in subtracting the y values of each data point successfully, but it is the x values of each data point in that I have trouble.

    m =10;
    SubDataList=Table[{DataList[[i,All,2]]-BGData[[All,2]]},{i,1,m}];
    Do[{SubDataPlot=ListPlot[SubDataList[]];},{i,1,m}]


    This is the code that I am having trouble with. However, my plot will get y values correct, but my x-axis is automatically set to 0 to 1400 in steps of 200. However, my data points shows that my x-axis should be from 0 to 0.07 in steps of 0.01.

    Both "DataList" and "BGData" are table of its own and the specifications that I have done for each just extracts the y-values in each table and subtracts them.
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted