title: Pattern Matching or comparing two graphs (line charts)
body: <p><strong>Given:</strong></p>
  
  <p>Ideal graph - Depicts the expected reading my machine should have. 
  Actual graph - Depicts the actual reading my machine had at that instance.</p>
  
  <p>X-axis: Force(N) from the machine</p>
  
  <p>Y-axis: Time(s)</p>
  
  <p>Both graphs were created using pyplot library in python.</p>
  
  <p><strong>What I need to do:</strong></p>
  
  <p>I need to compare the graph in its three phases: initialization (machine starts applying force), constant phase (constant force), end phase (machine stops applying force) and give the analysis of how close the phases in the actual read were to the ideal case (in terms of percentage). The analysis would allow me to conclude how the machine performed in those three phases for the actual read taken. I would need to do this for each reading taken every 50s.</p>
  
  <p><strong>Hurdle:</strong></p>
  
  <p>Now both the graphs were not created using the same number of data points. Ideal graph was created with 100 set of points and Actual graph was created using 30,000+ points. So I would not be able to compare the graphs using data points.</p>
  
  <p><strong>Idea:</strong></p>
  
  <p>Would it be wise to save the graph of the actual read as a png and compare it with the image of the ideal case graph?
  Please give me some idea or solution to tackle this problem.</p>