How to change the axes position in matlab
Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2)Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2) Hi Everybody!
I want to be able to relocate my axes/the origin (0, 0) of my plot to the middle of the graphics window. I don’t know how to manipulate the set command to do this. There must be a way. Regards
% Code explores advanced graphics properties
clf
x= 0:pi/10:pi;
angle = x.*180/pi;
y = -sind(angle);
h =plot(angle, y)
set(h, ‘color’, ‘red’)
set(h, ‘marker’,’s’)
set(h, ‘LineWidth’, 2)
h_axis =gca; % Manipulate theaxis next
set(h_axis, ‘LineWidth’, 2) programming MATLAB Answers — New Questions