Skip to content

Commit 24ec512

Browse files
committed
Fix legend in visualizer.py
1 parent 8420559 commit 24ec512

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pownet/core/visualizer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ def plot_mean_thermal_unit_hourly_status(
198198
cbar = plt.colorbar(mpl.cm.ScalarMappable(norm=norm, cmap="binary"), ax=ax)
199199
cbar.set_label("Unit status")
200200

201+
legend = fig.legend(
202+
loc="outside lower center",
203+
fontsize="small",
204+
bbox_to_anchor=(0.5, -0.12),
205+
)
206+
201207
if output_folder is not None:
202208
figure_name = f"{self.model_id}_thermal_unit_status.png"
203209
fig.savefig(

0 commit comments

Comments
 (0)