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...

 Respuesta aceptada

Priya Moorthy
Priya Moorthy el 4 de Dic. de 2020
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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Comunidades de usuarios

Más respuestas en  SimBiology Community

Categorías

Más información sobre Extend Modeling Environment en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 4 de Dic. de 2020

Comentada:

el 5 de Nov. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by