How to plot two lines which represent data in the same figure? These two lines's diff value is very less than the diff value of highest to lowest.

34 Views Asked by At

I have two lines as follows:

line1 = [381156070.426869   18991280402.5489    37851706111.2345    56587010947.1738    75196128662.4516    93674380500.2200    112020661854.784    130232977843.840    148303323664.688    166236447369.432    184023492340.442    201671255959.833    219177990730.184]
line2 = [381152328.260590   18991096195.2797    37851417428.7922    56586627760.8760    75195661261.4112    93673851555.4860    112020130905.813    130232444040.681    148302785591.610    166235904318.277    184022946251.285    201670702121.807    219177431057.645]

If I just use plot function in mathlab, the figure is thisI need to plot the two line in one figure which could see they are different, i.e. one is above another. But the diff value of the two lines is very less than the highest value minus the lowest value, such as line1[1] << line1[12] - line1[1], so when I plot the two lines ,they are overlap each other. How could I plot these two lines in the same figure but able to see their difference?

Or is it OK to plot the diff values of the two lines(result in one line) in a paper?

1

There are 1 best solutions below

8
On

Just plotting the common line emphasizes that the difference is quite small. That may be the message you want to present. Otherwise, I would plot a chart with two $y$ axes, one for the average value of the two lines and one for the difference between them and one line for each. It will take some thought to understand, but will get the point across.