Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
An alternative to text, legend, or annotation commands, this function allows you to label objects directly on a plot by entering the handle of a plotted object and a string. Label text is automatically colored to match plotted data, or text color can be entered manually.
Syntax
label(h,'string')
label(...,'location',LocationString)
label(...,'TextProperty',PropertyValue)
label(...,'slope')
h = label(...)
Description
label(h,'string') places 'string' near the leftmost data described by handle h.
label(...,'location',LocationString) specifies location of the string. LocationString can be any of the following:
'left' or 'west' (default)
'right' or 'east'
'top' or 'north'
'bottom' or 'south'
'center' or 'middle'
label(...,'TextProperty',PropertyValue) specifies text properties as name-value pairs.
label(...,'slope') attempts to angle text following the local slope of the data.
htext = label(...) returns the handle htext of the newly-created text object.
Citar como
Chad Greene (2026). label (https://es.mathworks.com/matlabcentral/fileexchange/47421-label), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: plotboxpos, ntitle, figtitle, legappend
Inspiración para: SI Psychrometric Chart, Mollier chart
Información general
- Versión 1.4 (585 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.4 | Updated for R2014b and fixed aspect ratio as per Simon Tardivel's suggestion. Thanks Simon and another FEX user Matthias for pointing out the R2014b bug. |
|
|
| 1.3.0.0 | A bug fix related to finding label pinning points. New examples added. |
||
| 1.2.0.0 | typo fix |
||
| 1.1.0.0 | Improved input/error checking. |
||
| 1.0.0.0 |
