spy with grid
6 ビュー (過去 30 日間)
古いコメントを表示
Does any one know how to addgrid when using spy() function? I tried to put 'grid on', but it failed. However, if I add 'grid minor', then it worked; but I dont want the minor grids to be diaplayed.
0 件のコメント
採用された回答
その他の回答 (1 件)
Daniel Shub
2012 年 4 月 27 日
The key can be found with
type spy
You will see
set(gca,'xlim',[0 n+1],'ylim',[0 m+1],'ydir','reverse', ...
'GridLineStyle','none','plotboxaspectratio',[n+1 m+1 1]);
Setting the GridLineStyle property to none seems a likely source of the "problem". You can get around it with:
spy
grid on
set(gca, 'GridLineStyle', ':')
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!