diff --git a/cityFireFig.py b/cityFireFig.py new file mode 100644 index 0000000..6a904c6 --- /dev/null +++ b/cityFireFig.py @@ -0,0 +1,9 @@ +import numpy as np +import matplotlib.pyplot as plt + +grid = np.zeros((100,200)) +grid[49,57] = 0.9 +grid[46:54,125:142] = 0.1 + + +plt.imshow(grid,cmap=plt.get_cmap('gnuplot2')) \ No newline at end of file diff --git a/figures/burnTimes.png b/figures/burnTimes.png new file mode 100644 index 0000000..45bf56d Binary files /dev/null and b/figures/burnTimes.png differ diff --git a/figures/setupMatrix.png b/figures/setupMatrix.png new file mode 100644 index 0000000..9d3daba Binary files /dev/null and b/figures/setupMatrix.png differ diff --git a/topModel.py b/topModel.py index 8416f51..aac31e8 100644 --- a/topModel.py +++ b/topModel.py @@ -22,4 +22,7 @@ if testModel.state[j+46,k+125] != 0: burnTimes[j,k] = i + 1 -fig, ax1 = plt.imshow(burnTimes,cmap=plt.get_cmap('inferno')) +fig, ax = plt.subplots() +im = plt.imshow(burnTimes,cmap=plt.get_cmap('RdBu')) +fig.colorbar(im) +plt.show()