The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: hightlight rectangle selection
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Michel bertrand

Posts: 15
Registered: 12/5/08
hightlight rectangle selection
Posted: Mar 4, 2013 7:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?
plot([ .2 .8], [.2 .8])
hold on
MarkerH=rectangle('Position', [x-w/2, y-w/2, w, w], 'EdgeColor', 'k', 'FaceColor', 'r');
hold off

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.