Skip to content

Commit

Permalink
change default floorplan and show means on boxplots
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Jan 5, 2018
1 parent ee5d530 commit 02bd7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def merge_dataframes():
human_count = args.human_count

# Fixed parameters of our batch runs
fixed_params = dict(floor_plan_file="floorplan_2.txt", human_count=human_count, fire_probability=0.8, visualise_vision=False, random_spawn=True, save_plots=True)
fixed_params = dict(floor_plan_file="floorplan_testing.txt", human_count=human_count, fire_probability=0.8, visualise_vision=False, random_spawn=True, save_plots=True)

# Vary percentage collaboration between MIN and MAX values above
collaboration_range = range(MIN_COLLABORATION, MAX_COLLABORATION + 1, 10)
Expand Down Expand Up @@ -104,7 +104,7 @@ def merge_dataframes():

fig = plt.figure(figsize=(GRAPH_WIDTH / GRAPH_DPI, GRAPH_HEIGHT / GRAPH_DPI), dpi=GRAPH_DPI)
ax = fig.gca()
dataframe.boxplot(ax=ax, column="PercentageEscaped", by="collaboration_percentage", positions=list(collaboration_range), figsize=(GRAPH_WIDTH / GRAPH_DPI, GRAPH_HEIGHT / GRAPH_DPI))
dataframe.boxplot(ax=ax, column="PercentageEscaped", by="collaboration_percentage", positions=list(collaboration_range), figsize=(GRAPH_WIDTH / GRAPH_DPI, GRAPH_HEIGHT / GRAPH_DPI), showmeans=True)
fig.suptitle("Evacuation Success: " + str(human_count) + " Human Agents, " + str(count) + " Iterations", fontsize=20)
plt.xlabel("Percentage of Humans Collaborating (%)", fontsize=14)
plt.ylabel("Percentage Escaped (%)", fontsize=14)
Expand Down

0 comments on commit 02bd7b1

Please sign in to comment.