Interactivity is turned on by plot command

1 回表示 (過去 30 日間)
Jonas Hellgren
Jonas Hellgren 2021 年 2 月 3 日
編集済み: Sourabh Kondapaka 2021 年 2 月 6 日
I want to turn of the interactive behavior of the axis and have tried to add the following to my startup.m file:
set(groot,'defaultAxesCreateFcn', @(ax,~) set(ax.Toolbar,'Visible','off'));
I know that the command works for when running the command
figure;ax=axes;get(ax.Toolbar,'Visible')
it returns off and the createFunction for the axes is correct.
But when I run a plot command the Visible property is set to on. It's the same for all the different plot commands that I've tried. It there a way to stop them from chaning the visibility of the interactive toolbar?
I also would like to turn the Interactivity for the axes off. I've tried with the following command:
set(groot,'defaultAxesCreateFcn', @(ax,~) disableDefaultInteractivity(ax));
It seems to work but again the plot commands change the settings.
I'm using Matlab 2020b.
  1 件のコメント
Sourabh Kondapaka
Sourabh Kondapaka 2021 年 2 月 6 日
編集済み: Sourabh Kondapaka 2021 年 2 月 6 日
Can you try out the suggestions made in this link.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by