How to plot graph scale?
1 view (last 30 days)
Show older comments
Hello
In the picture below, how can I create the scales shown by the arrows?
Thank you
0 Comments
Accepted Answer
Sajeer Modavan
on 18 Mar 2019
figure
plot3([2953500 2955000],[3805000 3805000],[4150000 4150000],'Linewidth',2),hold on
plot3([2955000 2955000],[3805000 3806500],[4150000 4150000],'Linewidth',2)
plot3([2955000 2955000],[3805000 3805000],[4150000 4152000],'Linewidth',2)
text(2952800,3805000,4150000,'1km','FontSize',12)
text(2955000,3807000,4150000,'1km','FontSize',12)
text(2955000,3805000,4152500,'1km','FontSize',12)
plot3([2962500 2964000],[3820000 3820000],[4150000 4150000],'Linewidth',2)
plot3([2964000 2964000],[3820000 3821500],[4150000 4150000],'Linewidth',2)
plot3([2964000 2964000],[3820000 3820000],[4150000 4152000],'Linewidth',2)
text(2961800,3820000,4150000,'1cm','FontSize',12)
text(2964500,3820000,4150000,'1cm','FontSize',12)
text(2963500,3820000,4153000,'1cm','FontSize',12)
grid on
xlim([2952000 2966000])
ylim([3804000 3822000])
zlim([4150000 4162000])
set(gca,'ydir','reverse');
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots 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!