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

 채택된 답변

Priya Moorthy
Priya Moorthy 2020년 12월 4일

1 개 추천

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

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

도움말 센터File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 12월 4일

댓글:

2021년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by