Comments on: Customizing axes part 5 – origin crossover and labels https://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels Charting Matlab's unsupported hidden underbelly Sun, 03 Jul 2022 14:46:57 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Rezahttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-505691 Sun, 27 Oct 2019 19:16:36 +0000 https://undocumentedmatlab.com/?p=6564#comment-505691 Thank you Yair!
In order to analyze the deformation of a surface, I would like to monitor this surface (facade of a building) every 2 hours, for example. so I get every 2 hours a point cloud I have to compare with a reference 3d-surface. How can I represent the distance between the surface and the point cloud as a colored figure?
I couldnt find any method or function in matlab to do that.
do you Any idea to do this?
I would be grateful for a answer, help, ideas or suggestions.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-504802 Tue, 22 Oct 2019 14:43:53 +0000 https://undocumentedmatlab.com/?p=6564#comment-504802 Reza – try using the view function.

]]>
By: Rezahttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-504797 Tue, 22 Oct 2019 14:08:45 +0000 https://undocumentedmatlab.com/?p=6564#comment-504797 Hi Yair,
Great post. i tried to rotate the axes in a 3d graph in Matlab. but i couldn’t do that. i have two Point Cloud, which i need to calculate the distance between them. As result want to represent it in a Heatmap with a coded Colormap. My project have Orientation according to the global cartesian coordinate system (measured with Totalstation scanner). I monitor facade of a Building (detect Moving in x,z plane). I want to change the Orientation of my Point cloud along x, y and z to have a good front view of the Project (not distorted). how can i rotate the Axes suitable to my project? Thanks for your help.

]]>
By: Sarahhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-434854 Thu, 09 Aug 2018 16:54:26 +0000 https://undocumentedmatlab.com/?p=6564#comment-434854 Thank you!

]]>
By: Guillaume De Lescluzehttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-392613 Sun, 06 Nov 2016 08:08:00 +0000 https://undocumentedmatlab.com/?p=6564#comment-392613 Hi Yarasov/Yair,

Context: I am using R2015a to display a ternary three-dimensional plot, so I have a base equilateral triangle and a vertical axis on top of this.

My question: When copying the above code in Matlab, I get an error when using the “ZRuler” command.

Do you have an idea why it might not be working in my case?

Many thanks!

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-385901 Wed, 17 Aug 2016 18:25:09 +0000 https://undocumentedmatlab.com/?p=6564#comment-385901 @Frank –

set(0,'defaultAxesYAxisLocation','origin')

(you forgot the “Axes” part in ‘defaultAxesYAxisLocation’)

]]>
By: Frank Brownhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-385883 Wed, 17 Aug 2016 14:34:37 +0000 https://undocumentedmatlab.com/?p=6564#comment-385883 Yair,

Great site!

I have been moving axes to cross at the origin as part of plotting for years and I’m glad to see MATLAB adopt this capability. One question though.

How could I make this the default behavior?

set(0,'defaultYAxisLocation','origin')  % does not work.

Does not work in 2015b, though the property exists and can be modified. Also similar syntax works for other axes properties (‘DefaultAxesLineWidth’).

Thanks for the help,
Frank

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-384310 Thu, 28 Jul 2016 07:44:46 +0000 https://undocumentedmatlab.com/?p=6564#comment-384310 @Yaroslav – thanks! I updated the text accordingly.

]]>
By: Yaroslavhttps://undocumentedmatlab.com/blog_old/customizing-axes-part-5-origin-crossover-and-labels#comment-384290 Wed, 27 Jul 2016 21:36:50 +0000 https://undocumentedmatlab.com/?p=6564#comment-384290 Hi Yair,

Great post yet again. It is worth mentioning that your methods can be extended to 3 dimensional plots, which are currently unsupported. For example,

% Plot Peaks
N = 49;
x = linspace(-10,10,N);
M = peaks(N);
%
mesh(x,x,M);
%
 
% Set a fixed crossover location of (0,0,0)
hAxis = gca;
hAxis.XRuler.FirstCrossoverValue  = 0; % crossover with Y axis
hAxis.YRuler.FirstCrossoverValue  = 0; % crossover with X axis
%
hAxis.ZRuler.FirstCrossoverValue  = 0; % crossover with X axis
hAxis.ZRuler.SecondCrossoverValue = 0; % crossover with Y axis
]]>