Filter löschen
Filter löschen

any one known how to take the y axis limit?

3 Ansichten (letzte 30 Tage)
prajith samraj
prajith samraj am 25 Jul. 2022
Kommentiert: Walter Roberson am 27 Jul. 2022
how reduce y axis limit ?
  2 Kommentare
dleal
dleal am 25 Jul. 2022
if ax is your axis:
ax.XLim = [lowerLimX upperLimX];
ax.YLim = [lowerLimY upperLimY];
dpb
dpb am 25 Jul. 2022
From the values on the tick labels, it would appear you may be approaching the limits of precision -- what are the actual limits on y -- are those real values, not in the fractional M value?
You can try scaling Y by 1E9 or 1E12 and then maybe have some numbers that will be easier to deal with.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 25 Jul. 2022
unless your y axes labels have no connection to the plot, then your y values are in the range 0.1-1e-13 to 0.1+1e-13 . What axes limits and tick values do you need?
  3 Kommentare
prajith samraj
prajith samraj am 26 Jul. 2022
how to plot this values 0.1-1e-13 to 0.1+1e-13 in y axis?
Walter Roberson
Walter Roberson am 27 Jul. 2022
You are already plotting the full range of values on the y axes. But you can force it to show more digits.
y = randn(1,100)/1e15 + 0.1;
figure
plot(y)
figure
plot(y)
ytickformat('%.14f')
figure
plot(y)
ytickformat('%.15f')

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by