Change default plot settings in SimBIology Model Analyzer App

Is it possible to change the default plot settings in the SimBiology Model Analyzer App? It would be nice to create new defaults for font, font size, legend location, etc...

 Akzeptierte Antwort

Priya Moorthy
Priya Moorthy am 4 Dez. 2020

1 Stimme

Hi, Greg, thank you for the suggestion. Currently, it is not possible to change the default font, font size, etc. for a plot in the SimBiology Model Analyzer App, but we will consider this suggestion for future releases.
Best,
Priya

6 Kommentare

Thank you for the quick response Priya!
Greg,
After discussing with a colleague, we have another workaround to suggest. You can change several default graphics settings in your startup.m file; this will affect every plot in MATLAB including those in the SimBiology Model Analyzer. For example:
set(groot, 'defaultAxesFontName', 'Times New Roman', ...
'DefaultAxesFontSize', 12, ...
'DefaultAxesFontAngle', 'normal', ...
'DefaultAxesFontWeight', 'normal', ...
'DefaultAxesTitleFontWeight', 'normal', ...
'DefaultAxesTitleFontSizeMultiplier', 1);
defaultLinewidth = 1;
set(groot,'DefaultLineLineWidth', defaultLinewidth);
set(groot,'DefaultRectangleLineWidth', defaultLinewidth);
You can find more information about startup.m here: https://www.mathworks.com/help/matlab/ref/startup.html and more about groot here: https://www.mathworks.com/help/matlab/ref/groot.html.
Best,
Priya
Hello,
I have a question that may be related (so I will not open a separate thread):
is it possible to at least modify axis limits from the Model Analyzer GUI, without having to export the plot to a separate figure first? sometimes the default is not optimal for readability.
Thanks in advance,
Massimo
Hi, Massimo,
This feature is not currently available in SimBiology Model Analyzer, but it has been requested by many customers and is under consideration for future releases.
Best,
Priya
Thanks Priya.
Grey & Massimo,
I wanted to share some additional information. As of R2021b, users can configure custom axes limits for plots within the SimBiology Model Analyzer app.
Although many default properties, such as the default color order or linestyle, are currently not changeable, some of the changes made to the default values on the graphics root object within MATLAB will be applied when generating plots from the Model Analyzer app. For example, you can increase the font size used by setting the defaultAxesFontSize property: set(groot, 'defaultAxesFontSize', 20).
More information about groot and default property values in MATLAB can be found here:
Best,
Priya

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  SimBiology Community

Kategorien

Mehr zu Extend Modeling Environment finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by