Need a way to fix the y-axis with linear scaling and log scaling.

6 次查看(过去 30 天)
Hello.
I need help in order to set the axis of my plot so I can view my data correctly.
My y-axis needs to be split in linear scale from 0-10 and log scale from 10-100. I just want to set the y-axis without changing the values of my data. I need it to look exactly as the following image.
I've been trying several solutions I found online but with no success. If I understand correctly I should be able to set the properties of the Figure or the UIAxes but nothing is working.
I really appreciate any suggestion. Thank you.
  5 个评论
dpb
dpb 2023-5-24
You might have to revert to the other option of only using one axis object, then, and doing it all by manipulation of the data itself.
dpb
dpb 2023-5-24
hUF=uifigure('position',[100 400 1000 200])
hTL=tiledlayout(hUF,2,1,'TileSpacing','none');
hAx=nexttile(hTL,1);
hAx(2)=nexttile(hTL,2);
hAx(1).XAxis.Visible='off';
results in the two axes with a space between them that looks like would be able to fix by readjusting the positions such that the two meet again.
Not sure about the difference with the 'none' spacing between the uifigure and regular figure; that may be something to ask official TMW support about...
I've not done much (as in any) graphics in an app as yet; they've all just been driving other processes to build database files. Hence, I don't have any inside knowledge or tricks specific to differences between figure and uifigure behavior...

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axes Appearance 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by