How do i remove or disable or hide zoom in zoom out, save, brush tool from Matlab figures ?

20 views (last 30 days)
How do i remove zoom in zomm out, save brush tool from matlab figures, because it appear in publishing flies and cannot be removed.

Answers (2)

Image Analyst
Image Analyst on 30 Mar 2021
Try this:
removeToolbarExplorationButtons(figHandle)
  2 Comments
GAURAV  BAKHRU
GAURAV BAKHRU on 11 Apr 2021
hey! Sorry i was busy with my college project work. The problem of the icons showing up in the images after publishing the file was from my end only and only on this file. i have published many other files but those icon were not showing up with the image. so i asked my friend to pusblish my file from his pc and it didnt show there so my work was done. It was very annoying. Thank you for your response, i have tried but it doesnt work, those icon are still showing up with images but not on the other files.

Sign in to comment.


Image Analyst
Image Analyst on 11 Apr 2021
Try :
ax = gca
ax.Toolbar.Visible = 'off'
Full Demo:
figHandle = figure;
x = 0 : 0.01 : 0.05
y = [0, 60, 105, 130, 138, 30]
plot(x, y, 'b.', 'MarkerSize', 30);
grid on;
fontSize = 18;
xlabel('Thickness of the Plate', 'FontSize', fontSize);
ylabel('Temperature', 'FontSize', fontSize);
%removeToolbarExplorationButtons(figHandle)
ax = gca
ax.Toolbar.Visible = 'off'

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!