How to position the default interactivity bar?
Ältere Kommentare anzeigen
I'm referring to the toolbar with things like Zoom in, Zoom out, Home, etc. Right now, its default position is to cover my xticklabel. Is there a way I can specify its position?
Thanks.
Antworten (2)
Ajay Pattassery
am 21 Feb. 2020
I am not sure of moving the figure toolbar, but you could remove it from the figure using the following command
ax = gca;
ax.Toolbar.Visible = 'off'; % Turns off the axes toolbar
2 Kommentare
Leon
am 21 Feb. 2020
Ajay Pattassery
am 24 Feb. 2020
Bearbeitet: Ajay Pattassery
am 24 Feb. 2020
I assume you have reason to keep the xticklabels on the top of the graph.
Jessa
am 15 Mai 2026 um 15:29
For any users looking for a solution to a similar problem in the future -- starting in MATLAB R2026a, there's a new `ToolbarLocation` property on the axes that gives you some control over where the axes toolbar is positioned:
ax.ToolbarLocation = "outside"; % above the axes (default)
ax.ToolbarLocation = "inside"; % inside the axes, top-right corner
You could try moving it "inside" in this case.
Kategorien
Mehr zu Axis Labels finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!