Redraw semilogy without tick movement

2 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by