Skip to content

Commit 40462e2

Browse files
committed
fix: area plot issue
1 parent 002f81d commit 40462e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pownet/core/visualizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def plot_fuelmix_area(
116116
bbox_to_anchor=(0.5, -0.12),
117117
)
118118
ax.set_ylabel("Power (MW)")
119-
ax.set_ylim(top=(demand[:total_timesteps].max() * 1.30).values[0])
119+
ax.set_ylim(top=(demand[:total_timesteps].max() * 1.30))
120120

121121
if output_folder is not None:
122122
figure_name = f"{self.model_id}_fuelmix.png"

0 commit comments

Comments
 (0)