title: Is there a way to scatter/cross plot blocks of two larger 2D arrays and obtain the gradient/slope between the two?
body: <p>I have two matrices (2D arrays) with identical shapes, but holds different values. I want to split the matrices into smaller sub-matrices, then scatter plot the values in each sub-matrix and extract the gradient from the regression line in each plot.</p>
  
  <p>I have managed to split the matrices, but i can't access and plot the sub-matrices and extract their gradient.</p>
  
  <p>The final result I want to obtain is a plot of the gradient values from each sub-matrix.</p>