MATLAB Answers


Figure editing shortcut missing

Jacqueline さんによって質問されました 2019 年 5 月 16 日
最新アクティビティ Jacqueline さんによって コメントされました 2019 年 5 月 19 日
I recently installed 2018b and the plot tools are very different. There used to be an icon on the very right of the toolbar that I could press to open figure palette, plot browser, and property editor. Now I have to click view > figure palette, then view > plot browser, then view > property editor. Is there an easy way to open all of these at the same time?
Screen Shot 2019-05-16 at 1.25.57 PM.png

  0 件のコメント

サインイン to comment.

1 件の回答

Answer by Rik
on 16 May 2019
Edited by Rik
on 17 May 2019
 Accepted Answer

You can open the plot tools with the plottools function. You can probably add this as a custom button, but otherwise the code below should work.
%or put this in your startup.m (untested, might need modification)
%make sure add_plottools_button is on your Matlab path
try %#ok
if ~verLessThan('matlab','9.5')
function add_plottools_button(fig)
persistent icon
if isempty(icon)
% Read an image
img = imread(fullfile(matlabroot,...
icon = double(img)/double(uint16( inf));
t = findall(fig,'type','uitoolbar','tag','FigureToolBar');
if isempty(t)
%no toolbar exists, create one
t = uitoolbar('Parent',fig);
% Create a uipushtool in the toolbar
uipushtool(t,'TooltipString','Open plot tools',...
Original answer:
You probably mean the controls that you can add back to your figure with addToolbarExplorationButtons.
Alternatively, you could add the code below to your startup.m to reverse the change by default.
try %#ok
if ~verLessThan('matlab','9.5')
set(groot,'defaultAxesCreateFcn', ...

  5 件のコメント

I added a circle around the button.
on 17 May 2019
See my adapted answer. And if you are wondering: in my copy of R2019a the tool_plottools_show.png file can be found in that folder, so that should keep working, at least for some time. Props to undocumented Matlab for suggesting findall to get the handle to the default uitoolbar object.
Excellent! Thank you!

サインイン to comment.

Translated by