Non-linearly spaced graph
4 次查看(过去 30 天)
显示 更早的评论
How is it possible to create this graph's x and y axis?

采纳的回答
Walter Roberson
2020-5-2
Heavy lines are drawn corresponding to XTickValues and YTickValues, provided that axis XGrid = 'on' and YGrid = 'on'. The positions do not need to be regular.
Lighter dashed lines are drawn corresponding to the axis XRuler.MinorTickValues and YRuler.MinorTIckValues, provided that XMinorGrid = 'on' and YMinorGrid = 'on' . However, I cannot find any way to customize the minor grid at the moment. I thought I had found a customization if XRuler.MinorTick is 'on' and YRuler.MinorTick is 'on' by adjusting XRuler.MinorTickChild but that turns out to only affect drawing ticks at the MinorTickValues location. I guess in theory you could adjust XRuler.MinorTickChild.VertexData and related parameters to extend those tick marks across the axes, but I don't know that it would be worth the trouble.
5 个评论
Walter Roberson
2020-5-3
编辑:Walter Roberson
2020-5-3
?? Why would use use xticklabels that do not match to the xticks? For example why would you label 0.98 position as being 5 ???
If it is because of the different spacing, then what you should be doing is using a log axes, using
set(gca, 'XScale', 'log', 'YScale', 'log')
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axes Appearance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!