フィルターのクリア

Why do lines look blurry with linewidth 1 in R2017a?

21 ビュー (過去 30 日間)
KAE
KAE 2017 年 6 月 19 日
コメント済み: Bob Blaine 2017 年 7 月 21 日
I am using R2017a and when I plot lines with linewidth of 1, they appear blurry or pixelated, as in the screenshot below. How can I fix this so the lines look crisp? I suspect it is not Matlab but rather some operating system setting (Windows 10), but any help would be appreciated.

採用された回答

Mudambi Srivatsa
Mudambi Srivatsa 2017 年 6 月 26 日
You might have to switch to 'opengl' hardware mode for graphics smoothing functionality. To do so, you can run the following code in MATLAB command window:
opengl hardware
Further, you can use the following settings to turn on line smoothing (if disabled earlier) in MATLAB:
set(0,'DefaultLineLineSmoothing','on');
set(0,'DefaultPatchLineSmoothing','on');
opengl('OpenGLLineSmoothingBug',1);
  2 件のコメント
KAE
KAE 2017 年 6 月 27 日
These tips worked, thanks.
Bob Blaine
Bob Blaine 2017 年 7 月 21 日
Line smoothing was deprecated in 2014b, so I suspect that the only one that really changes anything is the first suggestion.
I think that the reason that you are seeing this change is that MathWorks found some issues or instabilities with your graphics hardware/driver combination and felt it was better to emulate graphics on software, which doesn't support anti-aliasing. You might want to try updating your graphics driver, if possible as this usually also solves the problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by