graphic "ghost"

8 Ansichten (letzte 30 Tage)
Nuno
Nuno am 4 Mai 2011
I'm creating a object shape with 'fill' and then updating it's position on the screen with 'set'.
When I also use 'image' to insert bit mapped graphics, I think a bug appears.
pseudo code:
a=fill([x1,y1],...);
set(a,[x2,y2],...);
set(a,[x3,y3],...);
set(a,[x4,y4],...);
set(a,[x5,y5],...);
b=image(rand(20)*100,'AlphaData',0.5*ones(20))
set(a,[x6,y6],...);
set(a,[x7,y7],...);
set(a,[x8,y8],...);
set(a,[x9,y9],...);
delete(b);
% at this moment, and only briefly for about 0.1s(even with a pause after), the initial 'fill' graphic will appear at [x5,y5], the position where the 'image' was inserted on the axis. THIS ONLY HAPPENS if the 'image' have the 'AlphaData' channel set...
Is this a confirmed bug or am I doing something wrong?
Regards, Nuno
  1 Kommentar
Nuno
Nuno am 4 Mai 2011
This was further clarified at:
http://www.mathworks.com/matlabcentral/answers/6771-fill-and-image-incompatible

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Nuno
Nuno am 4 Mai 2011

Weitere Antworten (1)

Nuno
Nuno am 4 Mai 2011
This is probably a side-effect of bug http://www.mathworks.com/support/bugreports/384622.

Community Treasure Hunt

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

Start Hunting!

Translated by