Brushing tool not working in a 3d plot inside GUI
3 views (last 30 days)
Show older comments
After creating an axes (axes1) in MATLAB GUI and plotting a 3D plot, brushing tool is not working properly. I'm unable to draw a rectangle and select data. Some erratic shape appears when I try to draw the rectangle instead.
The code used is shown below.
%Code in the M file Opening fucntion
x = rand(1,10)*10;
y1 = rand(1,10)*15;
y2 = rand(1,10)*20;
axes(axes1)
plot3 (x, y1, y1, 'o')
%Code in button1_Callback function
axes(axes1)
brush on
pause
The same set of commands when written in the console work just fine but when written in the GUI M file do not seem to work correctly. Am I doing something wrong ?
2 Comments
ablenkmann
on 13 Aug 2015
Hi, I'm having the same problem using the brush tool in 3D plots. However it works OK for 2D plots and also when rotating the view to X-Y view. The problem occurs only inside the GUI.
Aravind have you found an answer to your problem?
Thanks!
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!