Problem with Brush Matlab R2015a
3 views (last 30 days)
Show older comments
Since upgrading to R2015a from R2014a. Two problems came up.
I. Changing the transparency of an area filled with the "area" function in the following way doesnt work anymore: x=0:pi/10:2*pi; y=x.^2; harea = area( x, y, 3); h=get(harea,'children'); set( h, 'FaceAlpha', 0.1) ...this code works in 2014a, in 2015a the transparency doesn't change
II. Retrieving data points from a plot with the brush doesn't work anymore. In R2014a the following code worked just fine, in R2015a it doesn't give back anything;
x = 1:.1:10; plot(x,x) brush on pause hBrushLine=findall(gca,'tag','Brushing'); brushedData=get(hBrushLine,{'Xdata','Ydata'}) for I=1:size(brushedData,1) brushedIdx = ~isnan(brushedData{I,1}); Selected_X_Values{I} = brushedData{I,1}(brushedIdx); end fitCorrectStart(1) = Selected_X_Values{1}(1); fitCorrectEnd(1) = Selected_X_Values{1}(end);
I identified two problems here: - Once in the brush mode on the plot no key press will make the pause function continue. - If the pause is limited to 3 seconds by writing pause(3), although data has been brushed during this time the brushedData variable is empty
0 Comments
Answers (1)
DeeWBee
on 12 Aug 2015
I had the same problem. Please look at this link: http://stackoverflow.com/questions/31970679/matlab-2015a-brush-issues/31971128?noredirect=1#comment51849840_31971128.
0 Comments
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!