Issue with minor and major grid line styles
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a wierd issue when saving a scatter plot, and grid line styles.
When using the code
grid on;
grid minor;
set(gca,'GridLineStyle','--','minorgridlinestyle',':');
Everything is fine. (note this is a screencap, not a save)
Yet when saving the figure with
saveas(gcf, fullfile(outputfile, ['...','.png']))
Note only one of the gridlines is set as it should.
Im an stumped, what could be cuasing this?
0 个评论
回答(1 个)
pfb
2015-4-16
I stumbled on this problem as well. I think you need to set the ticks manually.
set(gca,'xtick',200:200:1000);
set(gca,'ytick',3:0.2:5);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!