Set length of plot axis
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Alex Vasin
el 24 de Mayo de 2022
Respondida: Voss
el 24 de Mayo de 2022
Hi. I plotted a curve which is shaped like a parabola. The peak of paraloba (y=2.5) touches the top border of the box (actually looks like it passes through the border a little and looks bad, imo). How do I increase the height of the top border so there is some white space between the curve and the top border? I tried Google already. Thanks
0 comentarios
Respuesta aceptada
Voss
el 24 de Mayo de 2022
You can use axis padded
x = -1:0.1:1;
y = 2.5-x.^2;
plot(x,y)
axis padded
Or set the y-limits:
x = -1:0.1:1;
y = 2.5-x.^2;
plot(x,y)
ylim([1.5 2.55])
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Histograms 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!