title: Data Points Subtraction
body: <p>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. </p>
  
  <pre><code>m = 10;
  DataList = Table[{}, {i, 1, m}];
  BGData = Import["BatchData-Background.txt", "Table"];
  BGPlot = ListPlot[BGData, FrameLabel -&gt; {"Time (s)", "Voltage [V]"}, PlotStyle -&gt; Black] 
  
  Do[{DataList[[i]] = Import["BatchData-B" &lt;&gt; ToString[i] &lt;&gt; "V.txt", "Table"];
  DataPlot = ListPlot[DataList[[i]], FrameLabel -&gt; {"Time (s)", "Voltage (V)"}, PlotStyle -&gt; Gray]; Print["B = ", i, "Volts"]; Print[DataPlot];}, {i, 1, m}];
  
  m = 10;
  SubDataList = Table[{DataList[[i, All, 2]] - BGData[[All, 2]]}, {i, 1, m}]; 
  
  Do[{SubDataPlot = ListPlot[SubDataList[[i]]];}, {i, 1, m}] `
  
  m = 10;
  SubDataList = Table[{DataList[[i,All,2]]-BGData[[All,2]]},{i,1,m}];
  Do[{SubDataPlot=ListPlot[SubDataList[[i]]];},{i,1,m}]
  </code></pre>
  
  <p>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 <code>0</code> to <code>1400</code> in steps of <code>200</code>. However, my data points shows that my x-axis should be from <code>0</code> to <code>0.07</code> in steps of <code>0.01</code>.</p>
  
  <p>Both <code>DataList</code> and <code>BGData</code> are table of its own and the specifications that I have done for each just extracts the <code>y-values</code> in each table and subtracts them.</p>