How can I select programmatically AxesToolbar tool?

1 visualización (últimos 30 días)
Martti Ilvesmäki
Martti Ilvesmäki el 10 de Ag. de 2021
Respondida: Thomas Fournier el 11 de Ag. de 2021
I'm building an app and would like to use only brush tool for one of my plots and pre-select this for user. How can I select at startup function the brush tool programmatically?
So far I have made brush the only availabe option:
% Create axestoolbar with only brush
axtoolbar(app.UIAxes,{'brush'});

Respuestas (1)

Thomas Fournier
Thomas Fournier el 11 de Ag. de 2021
Just doing this after your scatter should work:
x = rand(20,1);
y = rand(20,1);
scatter(x,y)
brush('on')

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by