Make figure data not accessible
Mostra commenti meno recenti
Greetings.
I am building a GUI with GUIDE, which contains also a data plot. I would like to allow the users to edit the graphical appearance of the plot created by my application (as by using the set(hObject,'Toolbar','figure') command), but I don't want them to have access to the numerical underlying data (as obtained by lineseries XData and YData). Any idea?
Moreover, the set(hObject,'Toolbar','figure') command allows the user to change the appearance of any object in the GUI, is it possible to restrict its use only to the plot?
Thanks.
Risposte (3)
Sean de Wolski
il 5 Apr 2013
0 voti
Set the 'HandleVisibility' and 'HitTest' of any graphics object you don't want available to 'off'
Crymage
il 5 Apr 2013
0 voti
The user can re-enable the visibility of the handles easily and obtaint the handles of the objects by e.g. findall also, even with disabled HandleVisibility. So disabling the HandleVisibility prevents accidental changes, but not intented ones.
Therefore my answer is: You can't. Matlab allows to access the graphic objects. and blocking this securely does not match the design of Matlab.
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!