Need a way to fix the y-axis with linear scaling and log scaling.
4 views (last 30 days)
Show older comments
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 Comments
dpb
on 24 May 2023
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
on 24 May 2023
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...
Answers (0)
See Also
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!

