How can I display the Plot Edit Toolbar on figures by default in MATLAB?

When I create a figure within MATLAB, then select View--> Plot Edit Toolbar, the Plot Edit Toolbar is displayed.
I would like this toolbar to be displayed by default.

 Accepted Answer

There is currently no property within MATLAB that allows this toolbar to be displayed by default.
To work around this issue follow the steps listed below:
1. Create the following function within any directory on the MATLAB path:
function defaultplotedittoolbar
plotedit({'plotedittoolbar',gcf,'toggle'})
2. Add the following line to your startup.m file (If startup.m does not exist, create it and place it in any directory on the MATLAB path).
set(0,'defaultfigurecreatefcn','defaultplotedittoolbar')
Now, the Plot Edit Toolbar will be displayed in a figure by default.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!