Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
hightlight rectangle selection
Posted:
Mar 4, 2013 7:04 PM
|
|
Hi: I am plotting rectangle object in a figure. In plot edit mode for this figure. If I select an plotted item or object such as a plotted curve, a marker,... the item is highlighted so I can see selection was successful. I can perform some action on the item, such as delete it from the figure for example. For a rectangle object, selecting it does not show it is selected in any way; but it is selected, as I found that I can delete it from the figure using keyboard <delete> ; also an appropriate context menu appears on mouse right-clicking
The following code draws a 2 point lines and a rectangle in a figure, so one can see rectangle object selection status cannot be observed. Is this a Matlab bug, or is it because I haven't correctly set some properties? %************************************************ figure(1);clf plot([ .2 .8], [.2 .8]) hold on x=.6;y=.4;w=.2; MarkerH=rectangle('Position', [x-w/2, y-w/2, w, w], 'EdgeColor', 'k', 'FaceColor', 'r'); hold off
|
|
|
|