{"id":65,"date":"2012-02-14T07:56:27","date_gmt":"2012-02-14T12:56:27","guid":{"rendered":"http:\/\/www.certif.com\/wordpress\/?p=65"},"modified":"2012-02-14T10:44:55","modified_gmt":"2012-02-14T15:44:55","slug":"how-to-have-more-than-one-plot-in-spec","status":"publish","type":"post","link":"https:\/\/www.certif.com\/wordpress\/how-to-have-more-than-one-plot-in-spec\/","title":{"rendered":"How to have more than one plot in spec"},"content":{"rendered":"<p>To compare two counter graphs after a scan, compare a scan with the previous one, or in general to have more than one graph at the same time you have different options in <strong>spec<\/strong><\/p>\n<p><strong><code>counters<\/code>:<\/strong><\/p>\n<p style=\"padding-left: 30px;\">The macro\u00a0<code>counters<\/code> allows the user to select a main detector and monitor and also to select which counters to plot.<\/p>\n<pre style=\"padding-left: 30px;\">320.FOURC&gt; counters\r\n\r\nCurrent counter configuration:\r\n\r\nNum\u00a0 Mnemonic\u00a0 Plot\r\n\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sec\u00a0\u00a0\u00a0 NO\r\n\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mon\u00a0\u00a0\u00a0 NO\u00a0 (is MON)\r\n\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 det\u00a0\u00a0\u00a0 NO\u00a0 (is DET)\r\n\u00a0 3\u00a0\u00a0\u00a0\u00a0\u00a0 roi1\u00a0\u00a0 YES\r\n\u00a0 4\u00a0\u00a0\u00a0\u00a0\u00a0 roi2\u00a0\u00a0 YES\r\n\r\nCounters to plot (roi1 roi2)?\r\nCounter for DET (det)?\r\nCounter for MON, -1 disables (mon)?<\/pre>\n<p><strong>Two graph windows<\/strong>:<\/p>\n<p style=\"padding-left: 30px;\">You could also select to open a second graph window. Then send data to plot to this window at your convenience with the function plot_cntl().\u00a0 In the following example:<\/p>\n<pre style=\"padding-left: 30px;\">def _plot 'plot_cntl(\"filter2\"); rplot det2; plot_cntl(\"filter1\"); rplot'\r\n\r\ndef plot 'plot_cntl(\"filter2\"); splot det2; plot_cntl(\"filter1\"); splot'<\/pre>\n<p style=\"padding-left: 30px;\">The first definition handles the real-time plotting during scans.\u00a0 The second handles the plot at the end of the scan.\u00a0 Here &#8220;det2&#8221; is the name of the second counter you wish to plot.\u00a0 The &#8220;filter2&#8221; plot is drawn first so that the active plot window gets set back to the default at the end.<\/p>\n<p><strong>More information:<\/strong><\/p>\n<p style=\"padding-left: 30px;\">For more plot related information see the following help pages:<\/p>\n<p style=\"padding-left: 30px;\"><a title=\"setplot\" href=\"\/spec_help\/setplot.html\">setplot<\/a> &#8211;\u00a0 Plotting options<\/p>\n<p style=\"padding-left: 30px;\"><a title=\"plot_cntl\" href=\"http:\/\/www.certif.com\/spec_help\/plot_cntl.html\">plot_cntl<\/a> &#8211; Built-in plotting functionalities<\/p>\n<p style=\"padding-left: 30px;\"><a title=\"x11\" href=\"http:\/\/www.certif.com\/spec_help\/x11.html\">x11<\/a> &#8211; graphics under X window system<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To compare two counter graphs after a scan, compare a scan with the previous one, or in general to have more than one graph at the same time you have different options in spec counters: The macro\u00a0counters allows the user to select a main detector and monitor and also to select which counters to plot. &hellip; <\/p>\n<p><a class=\"more-link block-button\" href=\"https:\/\/www.certif.com\/wordpress\/how-to-have-more-than-one-plot-in-spec\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/posts\/65"}],"collection":[{"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":10,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/posts\/65\/revisions\/74"}],"wp:attachment":[{"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.certif.com\/wordpress\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}