plot 関数を用いて出力した円形マーカーが変形する問題

7 views (last 30 days)
Ryota Sakamoto
Ryota Sakamoto on 29 Jul 2018
Edited: michio on 29 Jul 2018
plot 関数を用いてグラフを描いた場合に、円形マーカーがゆがむという現象が起きて困っています(図1)。 完全な円形マーカーを Figure に出力するためには、どのように設定を変更すればよいでしょうか。(環境: R2018a - student use)
x = 0:1:10;
y = x;
figure
plot(x,y,'o','LineWidth',7,'MarkerEdgeColor','b','MarkerSize',20)

Accepted Answer

michio
michio on 29 Jul 2018
もしかしたらグラフィックスハードウェアの問題かもしれません。
opengl info
と実行すると Software の項目が true と出ますでしょうか?
グラフィックスハードウェアのドライバーを最新のものに更新することで解決することも多いです。
  3 Comments
Ryota Sakamoto
Ryota Sakamoto on 29 Jul 2018
Edited: Ryota Sakamoto on 29 Jul 2018
素早いご対応ありがとうございます。 'opengl info' に対して Software: 'true' と出力されました。そこで
opengl('save','hardware')
と入力したところ、円形のマーカーが出力され(図)、問題は解決しました。 ありがとうございました!
michio
michio on 29 Jul 2018
Edited: michio on 29 Jul 2018
よかったです。何が要因で Software: true となっていたかはわかりませんが、グラフィックスドライバーのバージョンが古い場合、場合によっては MATLAB の強制終了の原因にもなりますので、下記もご一読頂き、必要であればドライバーの更新も行ってみてください。

Sign in to comment.

More Answers (0)

Categories

Find more on グラフィックス パフォーマンス in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!