Problem with Brush Matlab R2015a

3 vues (au cours des 30 derniers jours)
sven
sven le 11 Juin 2015
Réponse apportée : DeeWBee le 12 Août 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

Réponses (1)

DeeWBee
DeeWBee le 12 Août 2015

Catégories

En savoir plus sur Manage Products dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by