Redraw semilogy without tick movement
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have the following code drawing to a GUI
for i = 1:3000
[x, y] = getFFT(inlet, x);
axes(handles.spectrogram);
semilogy(w, y*.01);
axis([0 125 0 100]);
set(gca, 'YTick', [0 10 100], 'YTickLabel', {0 10 100})
xlabel('Frequency (Hz)');
ylabel('Amplitude (microvolts)');
set(gca, 'YTickLabel', {0 10 100});
hold on;
Each time this is plotted, I would like the Y-axis ticks to remain in the same position. Instead, they jump around a bit depending on the natural of the Fourier transform (y). Is there a way to get around this? Namely, I'd like the ticks not to move from their starting position.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!