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.
4 ビュー (過去 30 日間)
回答 (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.