Problem with Brush Matlab R2015a

4 Ansichten (letzte 30 Tage)
sven
sven am 11 Jun. 2015
Beantwortet: DeeWBee am 12 Aug. 2015
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

Antworten (1)

DeeWBee
DeeWBee am 12 Aug. 2015

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by