Skip to content

Commit

Permalink
figure generationscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Paytonco committed Jan 30, 2022
1 parent 3d7af1b commit 4cf4b16
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions cityFireFig.py
Original file line number Diff line number Diff line change
@@ -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'))
Binary file added figures/burnTimes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/setupMatrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion topModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 4cf4b16

Please sign in to comment.