Turn off line smoothing (anti-aliasing) in 2014b?
3 ビュー (過去 30 日間)
古いコメントを表示
Is there a way to turn off line smoothing for selected objects (line objects in particular) in 2014b? I mean, it's great and all, but for some graphics having perfectly unaliased lines is better. I tried setting the line smoothing property to off, but this seems to have no effect (and produces a warning)
Consider e.g. this:
figure
axes
line([0 1],[.5 .5])
line([.5 .5],[0 1])
For me this gives a perfect 1 pixel line for the horizontal line, but a lighter blue 2 pixel wide line for the vertical one.
(Resizing the axes makes the lines alternate between 1 and 2 pixels wide)
0 件のコメント
回答 (1 件)
Sean de Wolski
2014 年 12 月 12 日
編集済み: Sean de Wolski
2014 年 12 月 12 日
fig = figure;
fig.GraphicsSmoothing = 'off';
plot(1:10)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!