changeloglabels v3
The function will change all the axes that have log labels (10^XX) to linear labels while still maintaining the log spacing. It will remake the labels when the zoom in/out and pan functions are used.
This is particularly useful for frequency plots.
Update: This function no longer needs to be actively called. Place the following commands in you startup file:
set(0,'DefaultFigureCreateFcn','set(zoom,''ActionPostCallback'',''changeloglabels'');set(pan,''ActionPostCallback'',''changeloglabels'')')
set(0,'DefaultAxesCreateFcn','proplistener(gca,{''XScale'',''YScale''},''PostSet'',''changeloglabels'')')
Whenever a plot is made with log axes, this code will automatically run.
Note: This usage requires that you have proplistener.m, I.D. 18301
Citar como
Jeffrey (2024). changeloglabels v3 (https://www.mathworks.com/matlabcentral/fileexchange/25384-changeloglabels-v3), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Axis Labels >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Log Plots >
Etiquetas
Agradecimientos
Inspirado por: PropListener - add a callback to property value get/set event, Change Log Labels
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.