Skip to content

Commit

Permalink
extended plots: set size for active rotations plot
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.schirmeister committed Sep 19, 2024
1 parent 7ea1a5f commit 7f173d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions simba/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ def plot_active_rotations(extended_plots_path, scenario, schedule):
ts = [scenario.start_time + scenario.interval * i for i in range(scenario.n_intervals)]
num_active_rotations = count_active_rotations(scenario, schedule)
plt.plot(ts, num_active_rotations)
fig = plt.gcf()
fig.set_size_inches(8, 4.8)
ax = plt.gca()
ax.xaxis_date()
ax.set_xlim(ts[0], ts[-1])
Expand All @@ -662,5 +664,6 @@ def plot_active_rotations(extended_plots_path, scenario, schedule):
ax.yaxis.get_major_locator().set_params(integer=True)
plt.grid(axis="y")
plt.title("Active Rotations")
plt.tight_layout()
plt.savefig(extended_plots_path / "active_rotations")
plt.close()

0 comments on commit 7f173d6

Please sign in to comment.