{"id":159,"date":"2011-09-14T00:31:14","date_gmt":"2011-09-14T00:31:14","guid":{"rendered":"https:\/\/blogs.mathworks.com\/seth\/2011\/09\/14\/how-to-customize-the-simulink-scope-take-2\/"},"modified":"2011-09-14T00:34:55","modified_gmt":"2011-09-14T00:34:55","slug":"how-to-customize-the-simulink-scope-take-2","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2011\/09\/14\/how-to-customize-the-simulink-scope-take-2\/","title":{"rendered":"How to customize the Simulink Scope &#8211; Take 2"},"content":{"rendered":"<p>Among all the posts I made in the last year, one that received many comments is <a href=\"https:\/\/blogs.mathworks.com\/seth\/2010\/06\/22\/how-to-customize-the-simulink-scope\/\">How to customize the Simulink Scope<\/a>. In this post, I suggested to use the <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2011b\/toolbox\/simulink\/slref\/simplot.html\">simplot<\/a> function to customize the way you visualize simulation data. The comments received sounded like:<\/p>\r\n\r\n<ul>\r\n\t<li><em>That is just a work-around, and not very convenient to be honest!<\/em><\/li>\r\n\t<li><em>One should be able to change the color of the signals easily with a palette<\/em><\/li>\r\n<\/ul>\r\n\r\n<p>Today I am happy to welcome my colleague Roshin Kadanna Pally to introduce a feature he recently developed that addresses these concerns directly.<\/p>\r\n\r\n<p><strong>Graphical Property Editor for Simulink Scopes<\/strong><\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/rkadanna_tn_large.jpg\" alt=\"Roshin Kadanna Pally, guest blogger and Simulink developer\" style=\"float: left; margin-right: 1em;\">\r\n\r\nStarting in release R2011b, graphical properties of Simulink Scopes can be customized using the new Simulink Scope graphical property editor. Using this feature, you can change the figure color, axes background and foreground colors, and line properties like color, style, width, and marker. <br> <br> \r\n\r\nHow does that work? You launch the graphical properties editor by clicking on the Simulink Scope parameters button:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2011Q3\/GraphicalEditor1.png\" alt=\"Simulink Scope parameters\"><\/p>\r\n\r\n<p>You will notice a new third tab:<\/p>\r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2011Q3\/GraphicalEditor2.png\" alt=\"Graphics tab of the Simulink Scope parameters\"><\/p>\r\n\r\n<p>When plotting multiple lines on the same axes, the Simulink Scope block assigns colors to each line in the order \u2013 Yellow, Magenta, Cyan, Red, Green, and Dark Blue. When there are more than six lines on the same axes, the Scope block will cycle through these six colors. Using the graphical property editor, you can now change the color, style, width, and marker of each of these six lines. Here is an example:<\/p> \r\n\r\n<p><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/seth\/2011Q3\/CustomizedScope.png\" alt=\"Example of a customized Simulink Scope\"><\/p>\r\n\r\n<p>The graphical properties of the Simulink Scope window can be changed before starting the simulation, when it is paused or after it is completed. Furthermore, the customized settings can be saved permanently by saving the Simulink model. When a Simulink Scope block with customized graphical properties is copied to create a new block, the graphical properties are copied as well.<\/p>\r\n\r\n<p><strong>Now it's your turn<\/strong><\/p>\r\n\r\n<p>Are you planning to create your own library of customized Scopes for different tasks? Leave a  <a href=\"https:\/\/blogs.mathworks.com\/seth\/?p=159&amp;#comment\">comment here<\/a>.<\/p>\r\n\r\n\r\n\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>Among all the posts I made in the last year, one that received many comments is How to customize the Simulink Scope. In this post, I suggested to use the simplot function to customize the way you... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2011\/09\/14\/how-to-customize-the-simulink-scope-take-2\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[33,16],"tags":[222,221],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}