How can I enlarge graph area?

1 visualización (últimos 30 días)
giovanacgois
giovanacgois el 19 de Mayo de 2018
Respondida: Walter Roberson el 19 de Mayo de 2018
I've plotted the graph from the attached image. I want to enlarge the graph area so that I can see the lines close to 1.
I read the doc and tried with ylim([0 2]) but it changed my Ytick values: I'm using
ay = gca;
ay.YRuler.TickLabelFormat = '% .2f';
set(gca, 'YTick',y)
I didn't want to see values above 1, I only want to see the line more easily.

Respuestas (1)

Walter Roberson
Walter Roberson el 19 de Mayo de 2018
yt = ay.YTick;
ylim([0.9 1])
ay.YTick = yt; %force the ticks to go back to what they were before

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by