logticks

logticks replaces the y-axis ticks of a logarithmic graph with the non-logarithmic values.
35 download
Aggiornato 4 mar 2016

Visualizza la licenza

The program takes the exponential of the existing ticks. It then adjusts them to get a sequence of 'pretty numbers.' Because of this, the spacing is never perfectly uniform, and sometimes this non-uniformity can be undesirable. In those cases, it helps selecting a larger minimum decimal position, because this will allow the program to choose more uniformly spaced ticks on a narrower grid.
Examples:
t = 0:30; y = exp(-t*0.03 + randn(1,31)*0.2);
plot(t,log(y)); grid on; logticks()
figure; plot(t,log(y)); grid on; logticks(gca,2)
t = 0:50; y = 1e6 * exp(t*0.05 + randn(1,51)*0.2);
figure; plot(t,log(y)); grid on; logticks
figure; plot(t,log(y)); grid on; logticks([],[],1e-6)

Cita come

Yvan Lengwiler (2024). logticks (https://www.mathworks.com/matlabcentral/fileexchange/55762-logticks), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2015a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

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