Weird behavior when adding a subplot grid title BEFORE plotting in a Live Script. Is there a workaround without having to add the title AFTER plotting?

2 vues (au cours des 30 derniers jours)
In a Live Script, if I add a subplot grid title to an invisible* figure, the acts of plotting or making the figure visible sometimes remove the subplot grid title. The attached Live Script, 'LiveScript_examples.mlx', shows when this weird behavior does and does not occur. The attached script, 'Script_examples.m', shows that this weird behavior does not occur in normal scripts.
*The only reason why I create an invisible figure is because I want to programmatically open the figure outside of the Live Script to access some context menu drop-downs created by bode (i.e. Systems, 'Characteristics', 'Show', and 'Properties...'). When I change the property 'Visible' to 'on', the figure "pops" out of the Live Script into its own window.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by