Flush Legend

Make legend flush with axes
116 descargas
Actualizado 1 jul 2016

Ver licencia

flushLegend makes the legend border flush with the lines of the plot axis. The legend location/position can be made flush with any corner, or at the centre-point of the sides. The location/position is assigned using standard Matlab legend notation (i.e. position_string = 'north', 'south', 'east', 'west', 'northeast', 'northwest' etc.) and abbreviations of these (i.e. position_string = 'n','s', 'e','w','ne','nw', etc).
Making the legend flush with the axis can be useful for making plots looking cleaner, especially if there is limited available space in the plot due to multiple data lines.

Usage:
Minimal usage: flushLegend( legend_handle )
Optional axis handle: flushLegend( legend_handle, axis_handle )
Optional position string: flushLegend( legend_handle, position_string )
Optional BOTH: flushLegend( legend_handle, axis_handle, positionString ): e.g. flushLegend( legend_handle, axis_handle, 'northeast' )

Citar como

Robert Richardson (2024). Flush Legend (https://www.mathworks.com/matlabcentral/fileexchange/57962-flush-legend), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Legend en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0