Skip to content

Commit 2c70ff4

Browse files
committed
Auto stash before merge of "master" and "origin/master"
1 parent 27469cc commit 2c70ff4

File tree

4 files changed

+1276
-121
lines changed

4 files changed

+1276
-121
lines changed

notebooks/epidemic_plots_from_cd_log.ipynb

Lines changed: 146 additions & 118 deletions
Large diffs are not rendered by default.

notebooks/epidemic_plots_from_cd_log.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
parser.add_argument('-d', '--dim', type=str, default="200,200", help='Dimensions of the cell grid (WIDTH,HEIGHT)')
1616
parser.add_argument('-i', '--initial_val', default=0, help='Force initial val for the cells')
1717
parser.add_argument('-c', '--state_changes', action="store_true", help='Log state changes to csv file')
18+
parser.add_argument('-f', '--img_format', default="pdf", help='Image format used to export the images')
1819

1920
args = parser.parse_args()
2021

@@ -148,7 +149,7 @@ def dict_to_states_row(states_dict):
148149
#plt.show()
149150
plt.xlabel("Time (s)")
150151
plt.ylabel("Population (%)")
151-
plt.savefig(base_name + "_area.png")
152+
plt.savefig(base_name + "_area" + args.img_format)
152153

153154

154155
fig, ax = plt.subplots(figsize=(12,7))
@@ -165,7 +166,7 @@ def dict_to_states_row(states_dict):
165166
plt.title('Epidemic percentages (%s)' % base_name)
166167
plt.xlabel("Time (s)")
167168
plt.ylabel("Population (%)")
168-
plt.savefig(base_name + "_lines.png")
169+
plt.savefig(base_name + "_lines" + args.img_format)
169170

170171

171172
df_nums = df.drop("walls", axis=1)
@@ -185,4 +186,4 @@ def dict_to_states_row(states_dict):
185186
plt.title('Epidemic percentages (%s)' % base_name)
186187
plt.xlabel("Time (s)")
187188
plt.ylabel("Population (%)")
188-
plt.savefig(base_name + "_lines_nosus.png")
189+
plt.savefig(base_name + "_lines_nosus" + args.img_format)

notebooks/epidemic_plots_from_cd_log_hoya.ipynb

Lines changed: 410 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)