2 XTick are existing on one plot!
3 次查看(过去 30 天)
显示 更早的评论
I'm trying to change the x ticks on a plotyy(x,y1,x,y2). This is what I'm doing:
set(gca,'XTick',[0:4:64])
However, the plotyy wants to use something more like [0:10:70], so I am getting my 0:4:64 ticks, but they are just being overlaid over the default ticks. Basically it's just really hard to read and the default ticks do not work for my application.
0 个评论
采纳的回答
Jan
2012-7-18
plotyy creates two axes objects. So do not use gca but the handles replied by AX = plotyy().
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Two y-axis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!