Flush Legend

Make legend flush with axes
116 download
Aggiornato 1 lug 2016

Visualizza la licenza

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' )

Cita come

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

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0