In appdesigner I am not able to set 'MarkerFaceColor' to none.

6 ビュー (過去 30 日間)
Edite Figueiras
Edite Figueiras 2018 年 11 月 27 日
回答済み: Edite Figueiras 2018 年 12 月 18 日
I am ploting a figure using 'imshow' and I am ploting there several x,y points using the marker 'o'. Something like this:
imshow(myfigure,[], 'Parent',app.XYmaxProjection)
plot(app.XYmaxProjection, xcoordinates,ycoordinates,'ro', 'MarkerFaceColor', 'none', 'MarkerSize',10)
For some reason the MarkerFaceColor is always white. Is there a way to change this?
Thank you!
1.png

回答 (2 件)

Harini Naveela
Harini Naveela 2018 年 12 月 17 日
Hi,
I am assuming you saw this behaviour in R2018a which I think is an existing bug. Try the same in 18b and it should work fine.
I tried the following code (similar to your requirement) and was able to reproduce it in 18a but not in 18b. I have attached both the 18a and 18b outputs for your reference.
x = rand(1,5);
y = rand(1,5);
h = plot(app.UIAxes,x,y,'ro');
set(h,'MarkerFaceColor','none');
set(app.UIAxes,'Color',[0 0 0]);
Hope this helps.
Thanks,
Harini

Edite Figueiras
Edite Figueiras 2018 年 12 月 18 日
Thank you Harini!
Yes I am using Matlab 2018a.
From the pictures your code works in the 18b version, correct?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by