Issue with minor and major grid line styles
    조회 수: 6 (최근 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!