Skip to content

Commit c6426a6

Browse files
committed
style: format plot_static_generations for improved readability
1 parent e2bdd17 commit c6426a6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

cellular_automata/von_neumann.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,27 @@ def plot_static_generations(
502502

503503
# Add grid
504504
axes[i].set_xticks(
505-
np.arange(-0.5, generation_history[gen_idx].shape[1], 1), minor=True
505+
np.arange(
506+
-0.5,
507+
generation_history[gen_idx].shape[1],
508+
1,
509+
),
510+
minor=True,
506511
)
507512
axes[i].set_yticks(
508-
np.arange(-0.5, generation_history[gen_idx].shape[0], 1), minor=True
513+
np.arange(
514+
-0.5,
515+
generation_history[gen_idx].shape[0],
516+
1,
517+
),
518+
minor=True,
509519
)
510520
axes[i].grid(
511-
which="minor", color="gray", linestyle="-", linewidth=0.5, alpha=0.3
521+
which="minor",
522+
color="gray",
523+
linestyle="-",
524+
linewidth=0.5,
525+
alpha=0.3,
512526
)
513527

514528
# Add colorbar to the last subplot

0 commit comments

Comments
 (0)