MATLAB: Can i save plottool configuration

graphMATLABplotplottool

Can i save the plottools changes I make? for example if I change the color of a plot using plottool, how can i save it in order to have the same change when i run my program again?

Best Answer

Hi Saleh,
Once you change all the plot preferences that you would like (ex: color, font, etc), if you navigate to the "File" menu, there is an option to "Generate code". This will generate a function (by default called 'createfigure', although you can change the name to whatever you would like) that saves all your preferences for you so that the next time you are using that plot call, you can call that function instead.
Hope this helps!