Änderungen von bevor Monorepo übernommen
parent
f4a927e125
commit
a03ce3d647
|
@ -70,6 +70,8 @@ yRange = range(len(dates))
|
||||||
matrix = matrix.T
|
matrix = matrix.T
|
||||||
plt.imshow(matrix)
|
plt.imshow(matrix)
|
||||||
plt.yticks(yRange[::5], dates[::5])
|
plt.yticks(yRange[::5], dates[::5])
|
||||||
|
plt.xlabel("Property ID")
|
||||||
|
plt.ylabel("Scrape Date")
|
||||||
|
|
||||||
# Create DiffMatrix
|
# Create DiffMatrix
|
||||||
diffMatrix = np.zeros((len(matrix)-1, len(matrix[0])))
|
diffMatrix = np.zeros((len(matrix)-1, len(matrix[0])))
|
||||||
|
@ -78,6 +80,8 @@ for y in range(len(matrix[0])):
|
||||||
diffMatrix[x][y] = abs(matrix[x][y] - matrix[x+1][y])
|
diffMatrix[x][y] = abs(matrix[x][y] - matrix[x+1][y])
|
||||||
|
|
||||||
plt.figure()
|
plt.figure()
|
||||||
plt.imshow(diffMatrix)
|
plt.imshow(diffMatrix, cmap="Reds")
|
||||||
plt.yticks(yRange[::5], dates[::5])
|
plt.yticks(yRange[::5], dates[::5])
|
||||||
|
plt.xlabel("Property ID")
|
||||||
|
plt.ylabel("Scrape Date")
|
||||||
plt.show()
|
plt.show()
|
Loading…
Reference in New Issue