If I have 4 different types of data such (that I get from an Excel file) as:
https://pastebin.com/j3Bgfxqm
I am trying to implement a Do
loop that extracts the data from the Excel file, superimposes the data in two different regions (as done here: Superimposed curves in two regions), plots the data individually (from the Do
loop) and then plots the data all together and superimposed. Here's my approach to everything except superimposing the curves (that's the part I don't know how to implement in the Do
loop):
Do[
datTCpc =
Extract[Import["excel file.xlsx"], 1][[3 ;; All, {i, i + 1}]];
store = AppendTo[tts1, datTCpc]; (*Stores the data*)
(*Plotting individually in the do loop*)
Show[
ListLinePlot[datTCpc, PlotStyle -> {Red},
AxesLabel -> {"T (ÂșC)", "Cp(J/gK)"},
LabelStyle -> {Black, Bold, 14},
PlotLabel -> Style[q2 "K/min", Black, 14]]]
// Print, {i, 1, imax2, 2}]
(*Plots the store data combined - superimposed*)
Show[ListLinePlot[store, PlotStyle -> {Red, Blue, Gray, Black},
LabelStyle -> {Black, Bold, 14}, ImageSize -> Large, Frame -> True,
Axes -> False, GridLines -> Automatic,
GridLinesStyle -> Lighter[Gray, .8], PlotRange -> {{20, 110}, All}]]
How can I superimpose the data using the first region from 29 to 41 (in x-axis data) and the second region from 72 to 85 (in the x-axis data)?
Clarification: By superimposing the curves or the data, I mean simply placing the curves one on top of the other (taking one as the reference and putting the other on top based on two regions).
EDIT
This is how the data will look like superimposed (done manually in Excel), where the two regions are shown in red circles:
It was done by translating or rotating the curves until minimizing the differences.