How to change Font Size in Simulink Scope?












1















I'm trying to change font size of axes, legend and title of a scope used in simulink. I've seen lots of answers for changing font size in a plot made from workspace, like using 'setgca' and 'fontsize' property, but couldn't find anything about changing font size within a simulink scope.










share|improve this question





























    1















    I'm trying to change font size of axes, legend and title of a scope used in simulink. I've seen lots of answers for changing font size in a plot made from workspace, like using 'setgca' and 'fontsize' property, but couldn't find anything about changing font size within a simulink scope.










    share|improve this question



























      1












      1








      1








      I'm trying to change font size of axes, legend and title of a scope used in simulink. I've seen lots of answers for changing font size in a plot made from workspace, like using 'setgca' and 'fontsize' property, but couldn't find anything about changing font size within a simulink scope.










      share|improve this question
















      I'm trying to change font size of axes, legend and title of a scope used in simulink. I've seen lots of answers for changing font size in a plot made from workspace, like using 'setgca' and 'fontsize' property, but couldn't find anything about changing font size within a simulink scope.







      matlab fonts scope size simulink






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 28 '17 at 12:22









      waka

      2,42392640




      2,42392640










      asked Sep 28 '17 at 9:47









      Isam AsaadIsam Asaad

      136




      136
























          3 Answers
          3






          active

          oldest

          votes


















          0














          In simulink is possible to change the font style and size using going to:




          Diagram > Format > Font Styles for Model




          There you can change the font style and size for blocks, lines and annotations.






          share|improve this answer































            0














            There isn't any functionality to change these from a pulldown menu, however, they can all be changed using code.



            The primary thing to note is that a Simulink Scope is just a MATLAB Figure Window in disguise, and hence it can be manipulated using standard Handle Graphics commands once you have the handle to the scope block you want to manipulate.



            For instance to change the size of the legend you'd do:



            % Get the Name of the block you want to change
            scope_name = get_param(gcb,'Name');
            % Get the handle of the figure window used for the scope
            hs = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE','Name',scope_name);
            % Get the handle to the axes on the scope
            % (For simplicity, here we'll assume there is only one axis on the scope.
            % If there are multiple axes, then you'll need to select which one to manipulate.)
            ha = findall(hs,'Type','Axes');
            % Get the handle to the legend
            hl = get(ha,'Legend');
            % Change the font size
            set(hl,'FontSize',12);


            Given any of the above handles you can manipulate it using set and get just like any Handle Graphics object.






            share|improve this answer































              -1














              I am not sure how to access the scope object from MATLAB, however, I managed to change the legend and titles text sizes by simply resizing the scope window. I know it's not exactly the right way to do this but it works.






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46466020%2fhow-to-change-font-size-in-simulink-scope%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                0














                In simulink is possible to change the font style and size using going to:




                Diagram > Format > Font Styles for Model




                There you can change the font style and size for blocks, lines and annotations.






                share|improve this answer




























                  0














                  In simulink is possible to change the font style and size using going to:




                  Diagram > Format > Font Styles for Model




                  There you can change the font style and size for blocks, lines and annotations.






                  share|improve this answer


























                    0












                    0








                    0







                    In simulink is possible to change the font style and size using going to:




                    Diagram > Format > Font Styles for Model




                    There you can change the font style and size for blocks, lines and annotations.






                    share|improve this answer













                    In simulink is possible to change the font style and size using going to:




                    Diagram > Format > Font Styles for Model




                    There you can change the font style and size for blocks, lines and annotations.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 15 '18 at 15:11









                    rakwahtrakwaht

                    1,83111728




                    1,83111728

























                        0














                        There isn't any functionality to change these from a pulldown menu, however, they can all be changed using code.



                        The primary thing to note is that a Simulink Scope is just a MATLAB Figure Window in disguise, and hence it can be manipulated using standard Handle Graphics commands once you have the handle to the scope block you want to manipulate.



                        For instance to change the size of the legend you'd do:



                        % Get the Name of the block you want to change
                        scope_name = get_param(gcb,'Name');
                        % Get the handle of the figure window used for the scope
                        hs = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE','Name',scope_name);
                        % Get the handle to the axes on the scope
                        % (For simplicity, here we'll assume there is only one axis on the scope.
                        % If there are multiple axes, then you'll need to select which one to manipulate.)
                        ha = findall(hs,'Type','Axes');
                        % Get the handle to the legend
                        hl = get(ha,'Legend');
                        % Change the font size
                        set(hl,'FontSize',12);


                        Given any of the above handles you can manipulate it using set and get just like any Handle Graphics object.






                        share|improve this answer




























                          0














                          There isn't any functionality to change these from a pulldown menu, however, they can all be changed using code.



                          The primary thing to note is that a Simulink Scope is just a MATLAB Figure Window in disguise, and hence it can be manipulated using standard Handle Graphics commands once you have the handle to the scope block you want to manipulate.



                          For instance to change the size of the legend you'd do:



                          % Get the Name of the block you want to change
                          scope_name = get_param(gcb,'Name');
                          % Get the handle of the figure window used for the scope
                          hs = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE','Name',scope_name);
                          % Get the handle to the axes on the scope
                          % (For simplicity, here we'll assume there is only one axis on the scope.
                          % If there are multiple axes, then you'll need to select which one to manipulate.)
                          ha = findall(hs,'Type','Axes');
                          % Get the handle to the legend
                          hl = get(ha,'Legend');
                          % Change the font size
                          set(hl,'FontSize',12);


                          Given any of the above handles you can manipulate it using set and get just like any Handle Graphics object.






                          share|improve this answer


























                            0












                            0








                            0







                            There isn't any functionality to change these from a pulldown menu, however, they can all be changed using code.



                            The primary thing to note is that a Simulink Scope is just a MATLAB Figure Window in disguise, and hence it can be manipulated using standard Handle Graphics commands once you have the handle to the scope block you want to manipulate.



                            For instance to change the size of the legend you'd do:



                            % Get the Name of the block you want to change
                            scope_name = get_param(gcb,'Name');
                            % Get the handle of the figure window used for the scope
                            hs = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE','Name',scope_name);
                            % Get the handle to the axes on the scope
                            % (For simplicity, here we'll assume there is only one axis on the scope.
                            % If there are multiple axes, then you'll need to select which one to manipulate.)
                            ha = findall(hs,'Type','Axes');
                            % Get the handle to the legend
                            hl = get(ha,'Legend');
                            % Change the font size
                            set(hl,'FontSize',12);


                            Given any of the above handles you can manipulate it using set and get just like any Handle Graphics object.






                            share|improve this answer













                            There isn't any functionality to change these from a pulldown menu, however, they can all be changed using code.



                            The primary thing to note is that a Simulink Scope is just a MATLAB Figure Window in disguise, and hence it can be manipulated using standard Handle Graphics commands once you have the handle to the scope block you want to manipulate.



                            For instance to change the size of the legend you'd do:



                            % Get the Name of the block you want to change
                            scope_name = get_param(gcb,'Name');
                            % Get the handle of the figure window used for the scope
                            hs = findall(0,'Tag','SIMULINK_SIMSCOPE_FIGURE','Name',scope_name);
                            % Get the handle to the axes on the scope
                            % (For simplicity, here we'll assume there is only one axis on the scope.
                            % If there are multiple axes, then you'll need to select which one to manipulate.)
                            ha = findall(hs,'Type','Axes');
                            % Get the handle to the legend
                            hl = get(ha,'Legend');
                            % Change the font size
                            set(hl,'FontSize',12);


                            Given any of the above handles you can manipulate it using set and get just like any Handle Graphics object.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 27 '18 at 5:18









                            Phil GoddardPhil Goddard

                            9,1771924




                            9,1771924























                                -1














                                I am not sure how to access the scope object from MATLAB, however, I managed to change the legend and titles text sizes by simply resizing the scope window. I know it's not exactly the right way to do this but it works.






                                share|improve this answer




























                                  -1














                                  I am not sure how to access the scope object from MATLAB, however, I managed to change the legend and titles text sizes by simply resizing the scope window. I know it's not exactly the right way to do this but it works.






                                  share|improve this answer


























                                    -1












                                    -1








                                    -1







                                    I am not sure how to access the scope object from MATLAB, however, I managed to change the legend and titles text sizes by simply resizing the scope window. I know it's not exactly the right way to do this but it works.






                                    share|improve this answer













                                    I am not sure how to access the scope object from MATLAB, however, I managed to change the legend and titles text sizes by simply resizing the scope window. I know it's not exactly the right way to do this but it works.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Apr 1 '18 at 16:19









                                    Sarunas NejusSarunas Nejus

                                    1




                                    1






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46466020%2fhow-to-change-font-size-in-simulink-scope%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        The Sandy Post

                                        Danny Elfman

                                        Pages that link to "Head v. Amoskeag Manufacturing Co."