Hi @Dimand ,
You need a systematic approach to resolve this issue. However, I agree with your approach of achieving a uniform scaling factor for all elements which is considered more efficient.One way to tackle this is by utilizing the set function in MATLAB to adjust properties of graphical objects. In this case, you can set a global scale factor that applies to fonts and other graphical elements. Here's a sample code snippet that demonstrates how you can achieve this:
% Set the default font size, line width, and scale factor
defaultFontSize = 18;
defaultLineWidth = 1; % Define the default line width
scaleFactor = 1.6; % 160% scaling
% Find all graphical objects and adjust font size and scale
set(findall(gcf,'-property','FontSize'),'FontSize', defaultFontSize * scaleFactor);
set(findall(gcf,'-property','LineWidth'),'LineWidth', defaultLineWidth * scaleFactor);
% Add more properties as needed
% Update the plot to reflect the changes
drawnow;
Using this code snippet will now help you achieve the desired scaling effect across all figures and simplifies the process by avoiding manual adjustments to individual settings.Additionally, keep exploring the groot object in MATLAB which can provide you insights into default settings that can be modified to achieve the desired scaling behavior. However, I will still suggest using a single scale factor approach as demonstrated above which offers a more straightforward and scalable solution. Hope this helps. Please let me know if you still have any further questions.