{"id":298083,"date":"2020-02-02T15:00:21","date_gmt":"2020-02-02T15:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298083"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298083","title":{"rendered":"\u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u0438\u043a\u0430\u043c\u0438 \u043d\u0430 \u043e\u0441\u0438 \u0432 gnuplot"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486628\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kr\/ck\/uq\/krckuq2nvtptnkm1cd1zlixg0e4.png\" \/><\/div>\n<p>  \u0417\u0430\u043d\u0438\u043c\u0430\u044f\u0441\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u043e\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435, \u0432\u043e\u0437\u043d\u0438\u043a \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0434\u043e\u043b\u044c \u043e\u0441\u0438 \u0432 <b>gnuplot<\/b>. \u0412\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0448\u0438\u043b, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b. \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u0432\u0441\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0441\u0442\u0440\u043e\u0438\u043b\u0438\u0441\u044c \u0432 MS Excel. \u0412 \u043d\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u0435\u043d\u044c\u043a\u043e\u043c\u0443 \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u0447\u043a\u0443 \u043a\u0440\u0438\u0432\u044b\u0445 \u0438 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435. \u041d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044f \u0432 MS Excel, \u043d\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u0435\u0439 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e gnuplot.<\/p>\n<p>  \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hv\/pe\/sa\/hvpesa5kkq8sdrw2aqfaisn0n54.png\"\/><\/p>\n<p>  \u041f\u043e \u0442\u0430\u043a\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">data.csv<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">7.3;\t0.0251;\t250;\t217.9006251 5.3;\t0.0348;\t293;\t238.6280188 3.3;\t0.0398;\t176;\t177.7890558 7.4;\t0.0413;\t262;\t229.6579533 3.2;\t0.0438;\t186;\t180.6920998 7.2;\t0.0468;\t265;\t233.6496388 5.1;\t0.0486;\t247;\t248.6435206 5.2;\t0.0685;\t239;\t263.0861645 3.4;\t0.0697;\t180;\t199.4893097 3.1;\t0.0717;\t167;\t200.9408317 4.3;\t0.0718;\t405;\t358.2750638 2.2;\t0.0728;\t267;\t255.5794728 1.1;\t0.0797;\t226;\t314.1587397 1.3;\t0.0797;\t225;\t314.1587397 1.2;\t0.0822;\t292;\t315.9731422 2.4;\t0.0852;\t276;\t264.5789092 1.4;\t0.0879;\t299;\t320.1099799 6.4;\t0.098;\t362;\t311.209506  2.3;\t0.102;\t331;\t276.771694  2.1;\t0.1021;\t233;\t276.8442701 6.1;\t0.1182;\t372;\t325.8698782 4.1;\t0.1263;\t335;\t397.8290383 4.4;\t0.1436;\t459;\t410.3847036 4.2;\t0.1455;\t435;\t411.7636495 6.2;\t0.153;\t360;\t351.126361 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 gnuplot, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u0442\u043e\u0447\u043a\u0438 \u0441\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vm\/io\/bo\/vmioboq8zluikh-3motfa62yji0.png\"\/><\/p>\n<p>  \u041d\u043e \u044d\u0442\u043e \u043c\u0430\u043b\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.<\/p>\n<p>  <a href=\"http:\/\/gnuplot.info\/docs_5.2\/Gnuplot_5.2.pdf\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u043c\u0435\u0442\u043e\u043a \u043d\u0430 \u043e\u0441\u0438 (<i>xtic<\/i>) \u0438 \u043c\u0435\u0442\u043a\u0430\u043c\u0438 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 (<i>sprintf<\/i>):<\/p>\n<pre><code class=\"plaintext\">set xtics rotate by -60 Label(String,Size) = sprintf(&quot;{\/=%d %s}&quot;, Size, String)  plot &quot;data.csv&quot; using 2:3:xtic(2) title &quot;1&quot; w lp ls 1 ,\\      &quot;data.csv&quot; using 2:4 title &quot;2&quot; w lp ls 2 ,\\      &quot;data.csv&quot; using 2:($3&gt;$4?$3+20:$4+20):(Label(stringcolumn(2), 12)) with labels notitle <\/code><\/pre>\n<p>  \u041a\u0443\u0441\u043e\u0447\u0435\u043a <\/p>\n<pre><code class=\"plaintext\">($3&gt;$4?$3+20:$4+20)<\/code><\/pre>\n<p>  \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0432\u044b\u0448\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u043d\u0430 20 \u0435\u0434\u0438\u043d\u0438\u0446.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/u0\/fj\/fe\/u0fjfewf14bvaoyk_qexarbc-s4.png\"\/><\/p>\n<p>  \u041d\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0441 \u043d\u0435\u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0434\u043e\u043b\u044c \u043e\u0441\u0438 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c.<br \/>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0431\u043b\u0443\u0436\u0434\u0430\u043d\u0438\u0439 \u043f\u043e \u0444\u043e\u0440\u0443\u043c\u0430\u043c \u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c \u2014 <b>\u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438<\/b>.<\/p>\n<p>  \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. <\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:<\/p>\n<pre><code class=\"bash\"> nl -v 0 -s ';' -w 1 data.csv &gt;&gt; data_nums.csv <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"bash\">grep -v &quot;^#&quot; data.csv | nl -v 0 -s ';' -w 1  &gt;&gt; data_nums.csv <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">data_nums.csv<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">0;\t7.3;\t0.0251;\t250;\t217.9006251 1;\t5.3;\t0.0348;\t293;\t238.6280188 2;\t3.3;\t0.0398;\t176;\t177.7890558 3;\t7.4;\t0.0413;\t262;\t229.6579533 4;\t3.2;\t0.0438;\t186;\t180.6920998 5;\t7.2;\t0.0468;\t265;\t233.6496388 6;\t5.1;\t0.0486;\t247;\t248.6435206 7;\t5.2;\t0.0685;\t239;\t263.0861645 8;\t3.4;\t0.0697;\t180;\t199.4893097 9;\t3.1;\t0.0717;\t167;\t200.9408317 10;\t4.3;\t0.0718;\t405;\t358.2750638 11;\t2.2;\t0.0728;\t267;\t255.5794728 12;\t1.1;\t0.0797;\t226;\t314.1587397 13;\t1.3;\t0.0797;\t225;\t314.1587397 14;\t1.2;\t0.0822;\t292;\t315.9731422 15;\t2.4;\t0.0852;\t276;\t264.5789092 16;\t1.4;\t0.0879;\t299;\t320.1099799 17;\t6.4;\t0.098;\t362;\t311.209506  18;\t2.3;\t0.102;\t331;\t276.771694  19;\t2.1;\t0.1021;\t233;\t276.8442701 20;\t6.1;\t0.1182;\t372;\t325.8698782 21;\t4.1;\t0.1263;\t335;\t397.8290383 22;\t4.4;\t0.1436;\t459;\t410.3847036 23;\t4.2;\t0.1455;\t435;\t411.7636495 24;\t6.2;\t0.153;\t360;\t351.126361 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445, gnuplot \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0434\u043e\u043b\u044c \u043e\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0432\u043d\u044b\u0435 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/aj\/sm\/jw\/ajsmjwtxsa_yrhwh0w6_dn1ulmw.png\"\/><\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"plaintext\">#!\/usr\/bin\/gnuplot -persist  set encoding utf8 set terminal pngcairo size 640,400 enhanced monochrome set output &quot;img.png&quot;  set ylabel &quot;Y&quot; set xlabel &quot;X&quot; set key left top samplen 5 spacing 1.15 width 2 set xrange [-0.5:24.5] set mytics 2 set xtics rotate by -60 set grid set pointsize 0.5 set datafile separator &quot;;&quot; set style line 1 linetype 1 pointtype 7 linewidth 2 linecolor black set style line 2 linetype 2 pointtype 7 linewidth 2 linecolor black  Label(String,Size) = sprintf(&quot;{\/=%d %s}&quot;, Size, String)  plot &quot;data_nums.csv&quot; using 1:4:xtic(3) title &quot;1&quot; w lp ls 1 ,\\      &quot;data_nums.csv&quot; using 1:5 title &quot;2&quot; w lp ls 2 ,\\      &quot;data_nums.csv&quot; using 1:($4&gt;$5?$4+20:$5+20):(Label(stringcolumn(2), 10)) with labels notitle <\/code><\/pre>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/486628\/\"> https:\/\/habr.com\/ru\/post\/486628\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486628\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kr\/ck\/uq\/krckuq2nvtptnkm1cd1zlixg0e4.png\" \/><\/div>\n<p>  \u0417\u0430\u043d\u0438\u043c\u0430\u044f\u0441\u044c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u043e\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435, \u0432\u043e\u0437\u043d\u0438\u043a \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0430\u043a \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0434\u043e\u043b\u044c \u043e\u0441\u0438 \u0432 <b>gnuplot<\/b>. \u0412\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0448\u0438\u043b, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b. \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298083","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298083"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298083\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}