I have a rectangle box in my plot, how to make the box in the same position and move the X - axis alone in the plotting.
1 次查看(过去 30 天)
显示 更早的评论
Compare to the Figure size my Axis size is more, So I want to keep the box in the same position and move the X - axis alone in the plotting. Could you help me to do this?
2 个评论
回答(1 个)
Ameer Hamza
2018-4-27
You can move and scale the axis using this method
ax = gca;
% change this value to move figure left or right. 0 -> complete left, 1 -> complete right
ax.Position(1) = 0.1;
% change this value to move figure up or down. 0 -> complete bottom, 1 -> complete up
ax.Position(2) = 0.1;
% change this value to scale x - axis
ax.Position(3) = 0.6;
% change this value to scale y - axis
ax.Position(4) = 0.5;
Try experimenting with these values to fit as you need.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!