Graph visualization adding white to my nodes. How to solve it?

3 ビュー (過去 30 日間)
Lucio Wasserman
Lucio Wasserman 2019 年 11 月 11 日
コメント済み: Lucio Wasserman 2019 年 11 月 13 日
Hello everyone,
I am having a problem with my graph visualization. In particular, my nodes are not being presented only in the colour selected, but they also have some white parts. In addition, these white parts are not "static", with every step of the loop (which changes the colour of one node at a time) there is a change in which part of each node is drawn in white.
I am posting an image of what I’m seeing:
I have already tried the same code on a different computer and the problem doesn’t persist. So I am guessing there is some setting I can adjust to solve this.
Thanks in advance for your collaboration!
  1 件のコメント
Lucio Wasserman
Lucio Wasserman 2019 年 11 月 12 日
I have changed the marker symbol and the problem disapears, so there must be something special with circles.

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

採用された回答

Christine Tobler
Christine Tobler 2019 年 11 月 12 日
I'd assume this problem will also happen with other graphics elements. Could you try the following code and let me know if you're seeing the same issue there?
scatter(randn(10,1), randn(10,1), 'o', 'MarkerFaceColor', 'b', 'MarkerEdgeColor', 'b')
  5 件のコメント
Steven Lord
Steven Lord 2019 年 11 月 13 日
You could place it in a startup.m file in the folder whose path is returned by userpath or in another directory that is on the MATLAB path when MATLAB starts.
Lucio Wasserman
Lucio Wasserman 2019 年 11 月 13 日
I'll try that.
Thank you all for your help!

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

その他の回答 (2 件)

Steven Lord
Steven Lord 2019 年 11 月 11 日
Can you check if there's an update available for your graphics driver?
If not, did this behavior suddenly start appearing (after a graphics driver update or a Windows update?) If it occurred after a graphics driver update, consider reverting that update to determine if it's a bug in the driver.
  1 件のコメント
Lucio Wasserman
Lucio Wasserman 2019 年 11 月 11 日
Hello,
My grahics driver is updated.
About your second question. I had an older version of MATLAB and got the 2017b version because the function I am using does not work on the one I had. So I have not done this type of graphs before.

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


Arash Rabbani
Arash Rabbani 2019 年 11 月 12 日
This is a visual artifact I assume. Try add Edge Color to your nodes. It could help.

カテゴリ

Help Center および File ExchangeDirected Graphs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by