{"id":2737,"date":"2015-05-08T16:44:46","date_gmt":"2015-05-08T20:44:46","guid":{"rendered":"http:\/\/blog.originlab.com\/?p=2737"},"modified":"2018-12-11T02:38:34","modified_gmt":"2018-12-11T07:38:34","slug":"easily-skip-columns-to-plot-columns-with-the-same-label","status":"publish","type":"post","link":"https:\/\/blog.originlab.com\/ja\/easily-skip-columns-to-plot-columns-with-the-same-label","title":{"rendered":"Plot Columns by Selecting Column Labels and Skip Others"},"content":{"rendered":"<p>Sometimes customers may input all data within one worksheet but only want to plot selected columns that share a common name, or part of the name, etc. This post shows how to use the newly added <strong>Edit: Select Dialog box<\/strong> in Origin 2016 to select columns all at once. For users with earlier versions, this post also shows how to sort columns by name in <strong>Plot Setup dialog<\/strong> which is less efficient than Edit: Select Dialog.<\/p>\n<p>Please download files <a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/plot_columns_with_same_label1.zip\">plot_columns_with_same_label<\/a>, which includes a .dat file and an .opj Origin project file with results.<\/p>\n<p>Open the project\u00a0file and go to <strong>Folder1<\/strong>, drag-and-drop the<strong> raw_data.dat<\/strong> file from Windows Explorer into <strong>Book1<\/strong>.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2772 size-full\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/1.png\" alt=\"1\" width=\"714\" height=\"463\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/1.png 714w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/1-300x195.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/a><\/p>\n<p>The file contains data for 19 compounds. Each compound includes an X column (wavelength), and two Y columns (Absorption and Time).<\/p>\n<p>Highlight the whole worksheet, right-click and select <strong>Set As: XYY XYY<\/strong> to ensure that there is a correct relationship between columns.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/2_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2790 size-full\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/2_2.png\" alt=\"2_2\" width=\"740\" height=\"506\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/2_2.png 740w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/2_2-300x205.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>Suppose you\u00a0want to plot\u00a0<strong>Absorption<\/strong> vs <strong>Wavelength<\/strong> for all the compounds, you can press\u00a0down the Ctrl key and select all Absorption columns. However if there are many compounds within one worksheet, it is cumbersome to select all columns individually.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>For version Origin 2016 and later:<\/strong><\/h4>\n<p>To begin Select <strong>Edit<\/strong>, listed on the toolbar, and select <strong>Select &#8230;<\/strong><\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7808\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-19.png\" alt=\"\" width=\"609\" height=\"456\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-19.png 609w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-19-300x225.png 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The <strong>Select Dialog<\/strong> box will appear. In the <strong>Mode<\/strong> drop down window select <strong>By Column Label<\/strong>, and in the <strong>Label<\/strong> drop down box select <strong>Long Name<\/strong>. Input <strong>A*<\/strong> into the <strong>String box<\/strong>to specify to Origin to search for all Long Names that begin with the letter &#8216;A&#8217;. Select <strong>Test- Select if True <\/strong> in order to select columns.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7809\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21.png\" alt=\"\" width=\"775\" height=\"481\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21.png 775w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21-300x186.png 300w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21-768x477.png 768w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-21-80x50.png 80w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/a><\/p>\n<p>With the columns selected, now you can select <strong>Plot<\/strong> and select <strong>Line\u00a0<\/strong>to immediately graph all compounds for Absorption vs. Wavelength.<\/p>\n<p><strong>A second method is to select columns by skipping column numbers<\/strong>. If columns are already selected in the worksheet, unselect the columns by clicking on one of the boxes in the worksheet. With the <strong>Select Dialog box<\/strong> open, in the<strong>Mode<\/strong> drop down box select <strong>By Select N columns and Skip M columns<\/strong>. Input 1 for <strong>N=<\/strong> to specify that one column will be selected, input <strong>M=2<\/strong> to specify to skip 2 columns, and input 2 for <strong>Start<\/strong> to specify to begin selection at column 2. Select <strong>Test- Select if True<\/strong>. Again all columns with the Long Name &#8216;Absorption&#8217; are selected.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7810\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24.png\" alt=\"\" width=\"780\" height=\"496\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24.png 780w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24-300x191.png 300w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24-768x488.png 768w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/Screenshot-24-80x50.png 80w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4><strong>For all versions of Origin:<br \/>\n<\/strong><\/h4>\n<p>So instead, let&#8217;s make sure nothing is selected and choose\u00a0<strong>Plot:Line:Line<\/strong> menu.\u00a0<strong>Plot Setup<\/strong> dialog will open.<\/p>\n<ol>\n<li>There are two modes in middle panel of Plot Setup dialog. Click on the double arrow\u00a0button on upper-right corner of the middle panel so only plottable columns, such as Y columns show.\u00a0In this case only Absorption and Time columns show.<\/li>\n<li>Click on <strong>Long Name<\/strong> to sort by column Long Name.<\/li>\n<li>Highlight all Absorption columns.<\/li>\n<li>Click on <strong>Add<\/strong> button to add in Layer 1.<\/li>\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/3_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2792 size-full\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/3_2.png\" alt=\"3_2\" width=\"759\" height=\"690\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/3_2.png 759w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/3_2-300x273.png 300w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This way, only\u00a0Absorption columns are plotted.<\/p>\n<p>To finish the look, click on any plot to select the whole plots. Use <strong>Line\/Border Color<\/strong> button on <strong>Style<\/strong> toolbar to apply Rainbow palette. \u00a0Increase thickness on Style toolbar as well.\u00a0<a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2777\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/4.png\" alt=\"4\" width=\"255\" height=\"21\" \/><\/a><\/p>\n<p>Add top and right\u00a0axes, and customize scale from Axis dialog. You can see the final graph under <strong>result<\/strong> folder of the opj file.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/5_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2821 size-full\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/5_3.png\" alt=\"5_3\" width=\"538\" height=\"445\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/5_3.png 538w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/5_3-300x248.png 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes customers may input all data within one worksheet but &hellip; <\/p>","protected":false},"author":16,"featured_media":2795,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"class_list":["post-2737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-handling"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7DvU2-I9","jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/05\/cover_2.png","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/2737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/comments?post=2737"}],"version-history":[{"count":28,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/2737\/revisions"}],"predecessor-version":[{"id":10283,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/2737\/revisions\/10283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media\/2795"}],"wp:attachment":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media?parent=2737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/categories?post=2737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/tags?post=2737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}