mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Fix Legend Overlap
This commit is contained in:
+5
-1
@@ -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)
|
||||
@@ -662,7 +666,7 @@ async def graph_power(request):
|
||||
{
|
||||
'label': 'voltage',
|
||||
'fields': ['voltage'],
|
||||
'palette': 'Set2',
|
||||
'palette': 'Set2'
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user