How do I turn off antialiasing in MATLAB R2014b?

6 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2014 年 10 月 7 日
回答済み: MathWorks Support Team 2014 年 10 月 8 日
How do I turn off antialiasing in MATLAB R2014b?

採用された回答

MathWorks Support Team
MathWorks Support Team 2014 年 10 月 7 日
Starting in MATLAB R2014b, figures use an antialiasing technique to reduce the appearance of jagged lines. However, the smoothing technique sacrifices some sharpness for smoothness and, in some cases, lines might appear fuzzy. To turn off antialiasing, set the GraphicsSmoothing property for the figure to 'off'. For example:
set(gcf,'GraphicsSmoothing','off')
These images show the difference between two lines, one with GraphicsSmoothing set to on and one with GraphicsSmoothing set to off.
If your graph contains mostly vertical or horizontal lines that appear uneven in thickness, use the AlignVertexCenters property to eliminate the uneven appearance. By default, this property is set to 'off'. To eliminate the uneven appearance, set the AlignVertexCenters property for the lines to 'on'.  
For example, create a plot of horizontal lines and set the AlignVertexCenters property for all of the lines to 'on';. Keep the GraphicsSmoothing property set to 'on' (the default).
p = plot([1:10; 1:10],[1 2])
set(p,'AlignVertexCenters','on')
 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

製品


リリース

R2014b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by