How can I move the axes rulers into the middle of axes within MATLAB 7.3 (R2006b)?
13 views (last 30 days)
Show older comments
When I execute the following code:
x = 1:11;
t = 1:30;
for i=1:length(x)
xt(i,:) = t;
tz(i,:) = x(i)*ones(1,length(t));
z(i,:) = sin(2*pi*0.1*t);
end
h = plot3(xt',tz',z'); grid;
axis([min(min(xt)) max(max(xt)) min(min(tz)) max(max(tz)) min(min(z)) max(max(z))]);
view(-3,10);
I would like to set the x-axis and y-axis to the plane z=0 instead of z=-1 with a common origin 0.
Accepted Answer
MathWorks Support Team
on 21 Jan 2010
The ability to change the location of axes lines relative to the graphics objects is not available in MATLAB.
To work around this issue you can use a function submitted to MATLAB Central to draw the axes lines in the desired location. The following URL will lead you to the file:
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3245>
Note that MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!