Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: hightlight rectangle selection
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Michel bertrand

Posts: 13
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

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



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.