move_legend_outside#

mobgap.plotting.move_legend_outside(
fig: Figure,
ax: Axes,
position: Literal['below', 'above'] = 'below',
padding: float = 1.5,
**kwargs: Any,
) None[source]#

Move the legend from the axes to the figure and place it outside the plot.

Note

This is still not well supported by matplotlib. Specifically, matplotlib, can not set outside padding. So we use a trick: We set inside padding for the legend and remove the border around it.

Examples using mobgap.plotting.move_legend_outside#

Walking speed estimation

Walking speed estimation

Cadence estimation

Cadence estimation

Stride length estimation

Stride length estimation

Full-pipeline performance under simulated mounting errors

Full-pipeline performance under simulated mounting errors

GSD performance under simulated mounting errors

GSD performance under simulated mounting errors

Performance of the laterality classification algorithms on the TVS dataset

Performance of the laterality classification algorithms on the TVS dataset

Performance of the stride length algorithms on the TVS dataset

Performance of the stride length algorithms on the TVS dataset