How to plot axis with origin (0,0,0) on 3D plot
Show older comments
I am using 3 matrices to form a 3D plot.
I am using the plot function >> line(S10,S20,S30, Axes=(0,0,0) 'linestyle', 'none', 'marker', '.', 'markeredgecolor', 'b', 'markersize', 0.1 ); view(3);
This is not the problem (I have tried using other plot functions and this is the only one that works).
However, on each of my axis I have positive and negative values but my axis are all positioned at the minimum value. How do i get the axis to be positioned at (0,0,0) with the above function?
Answers (1)
Since R2015b, you can use
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
Categories
Find more on Axes Appearance 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!