Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No axis, to manually add axis draw lines on axis manually #18

Open
prateekrajgautam opened this issue Sep 8, 2020 · 0 comments
Open

Comments

@prateekrajgautam
Copy link

or call this function Axis3d

function []=Axis3d(x,y,z)
if nargin==0
    g=gcf;
    a=g.CurrentAxes;
    xLim=a.XLim;
    yLim=a.YLim;
    zLim=[-1,1];
else
    x1=min(x)
    x2=max(x)
    y1=min(y)
    y2=max(y)
    z1=min(z)
    z2=max(z)
    xLim=[x1,x2];
    yLim=[y1,y2];
    zLim=[z1,z2];
end
hold on
plot3(xLim,[0, 0],[0, 0],'-k')
hold on
plot3([0, 0],yLim,[0, 0],'-k')
hold on
plot3([0, 0],[0, 0],zLim,'-k')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant