Merge pull request #5 from madeofstown/master

Fix overlapping legends
This commit is contained in:
Pablo Revilla
2025-02-18 13:49:25 -08:00
committed by GitHub

View File

@@ -638,6 +638,10 @@ async def graph_telemetry(node_id, payload_type, graph_config):
if 'palette' in ax_config:
args['palette'] = ax_config['palette']
sns.lineplot(data=ax_df, ax=ax, **args)
if i:
sns.move_legend(ax, "upper right")
else:
sns.move_legend(ax, "upper left")
png = io.BytesIO()
plt.savefig(png, dpi=100)