{"id":826,"date":"2020-05-07T13:34:27","date_gmt":"2020-05-07T04:34:27","guid":{"rendered":"http:\/\/hirlab.net\/nblog\/?p=826"},"modified":"2020-05-07T13:34:27","modified_gmt":"2020-05-07T04:34:27","slug":"c%e3%81%a7%e3%82%b0%e3%83%a9%e3%83%95%e6%8f%8f%e7%94%bb%e3%82%92%e3%81%99%e3%82%8b%e3%81%aa%e3%82%89matplotlib-cpp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/hirlab.net\/nblog\/category\/programming\/art_826\/","title":{"rendered":"C++\u3067\u30b0\u30e9\u30d5\u63cf\u753b\u3092\u3059\u308b\u306a\u3089matplotlib-cpp\u3092\u4f7f\u3063\u3066\u307f\u308b\uff1f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u6700\u8fd1\u3067\u306fPython\u304c\u4eba\u6c17\u3067\u3059\u306d\uff0e<\/p>\n<p>\u306a\u305c\u4eba\u6c17\u304b\u3068\u8a00\u308f\u308c\u308c\u3070\uff0c<strong>\u8907\u96d1\u306a\u51e6\u7406\u3082\u7c21\u6f54\u306a\u30b3\u30fc\u30c9\u3067\u6e08\u3080<\/strong>\u304b\u3089\u3067\u3059\uff0e<\/p>\n<p>\u578b\u306e\u660e\u8a18\u3082\u8981\u3089\u306a\u3051\u308c\u3070\uff0c\u307b\u3068\u3093\u3069\u306e\u6570\u5b66\u7684\u51e6\u7406\u3082NumPy\u3067\u6e08\u307f\uff0c\u30b0\u30e9\u30d5\u3082matplotlib\u304c\u3042\u308c\u3070\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u63cf\u753b\u53ef\u80fd\u3067\u3059\uff0e<\/p>\n<p><strong>\u4e00\u65b9C++\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f<\/strong><\/p>\n<p>\u578b\u306e\u660e\u8a18\u306f\u5fc5\u8981\u3060\u3057\uff0c\u30b0\u30e9\u30d5\u63cf\u753b\u3082\u6163\u308c\u3066\u3044\u306a\u3044\u3068\u4e00\u82e6\u52b4\u3067\u3059\uff0e<\/p>\n<p>\u305d\u3053\u3067\uff0c<strong>C++\u3067matplotlib\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u30b0\u30e9\u30d5\u3092\u66f8\u3053\u3046<\/strong>\uff0c\u3068\u3044\u3046\u306e\u304c\u3053\u306e\u8a18\u4e8b\u306e\u8da3\u65e8\u3067\u3059\uff0e<\/p>\n<p>\u524d\u7f6e\u304d\u304c\u9577\u3044\u3068\u5acc\u308f\u308c\u307e\u3059\u306e\u3067\uff0c\u3055\u3063\u305d\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff0e<\/p>\n<h2>matplotlib-cpp<\/h2>\n<p>Python\u306ematplotlib\u3092C++\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\u30d8\u30c3\u30c0\u30aa\u30f3\u30ea\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3057\u307e\u3059\uff0e<\/p>\n<p>\u305d\u308c\u304c<strong>matplotlib-cpp<\/strong>\u3067\u3059\uff0e<\/p>\n<p><a href=\"https:\/\/github.com\/lava\/matplotlib-cpp\" target=\"_blank\" rel=\"noopener noreferrer\"><i class=\"fab fa-github\"><\/i> lava\/matplotlib-cpp: Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib<\/a><\/p>\n<p>\u3044\u307e\u3060\u306b\u3061\u3087\u304f\u3061\u3087\u304f\u66f4\u65b0\u3055\u308c\u3066\u3044\u3066\uff0c\u6a5f\u80fd\u304cmatplotlib\u306b\u8fd1\u3065\u3044\u3066\u3044\u308b\u5370\u8c61\u3067\u3059\uff0e<\/p>\n<p>\u4e3b\u306b\u5fc5\u8981\u306a\u3082\u306e\u306fPython\u3068NumPy\uff0e<\/p>\n<p>\u7d30\u304b\u3044\u8a71\u306f\u7f6e\u3044\u3068\u3044\u3066\u4f7f\u3044\u65b9\u3092\u3072\u305f\u3059\u3089\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff0e<\/p>\n<h3>installation<\/h3>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u5fc5\u8981\u306a\u306e\u306f<strong>\"matplotlibcpp.h\"\u3060\u3051<\/strong>\u306a\u306e\u3067\uff0c\u305d\u308c\u3060\u3051\u843d\u3068\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<p>\u3053\u306e\u5f8cCMakeLists.txt\u3082\u66f8\u304d\u307e\u3059\u304c\uff0c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u66f8\u304fmain.cpp\u3068\u5408\u308f\u305b\u3066\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u69cb\u9020\u3067\u3059\uff0e<\/p>\n<pre class=\"lang:sh decode:true \" title=\"directory tree\">.\r\n\u251c\u2500\u2500 build\/  #\u30d3\u30eb\u30c9\u7528\u306e\u7a7a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\n\u251c\u2500\u2500 CMakeLists.txt\r\n\u251c\u2500\u2500 main.cpp\r\n\u2514\u2500\u2500 matplotlibcpp.h\r\n<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u3068\u308a\u3042\u3048\u305aOK\uff0e<\/p>\n<p>\u3042\u3068\uff0c\u50d5\u306e\u624b\u5143\u3067\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9(line: 301-307)\u3067Redefinition\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\uff0c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u5bfe\u51e6\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p><span style=\"color: #333399;\">\u203b 2020.04.22\u306e\u66f4\u65b0\u3067\u8ffd\u52a0\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3089\u3057\u3044\u306e\u3067\uff0c\u3082\u3057\u304b\u3057\u305f\u3089\u307f\u306a\u3055\u3093\u306e\u843d\u3068\u3057\u305f\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5225\u306e\u30b3\u30fc\u30c9\u306b\u66f8\u304d\u63db\u308f\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e<\/span><\/p>\n<pre class=\"lang:c++ decode:true\" title=\"Error?\">\/\/ Sanity checks; comment them out or change the numpy type below if you're compiling on\r\n\/\/ a platform where they don't apply\r\n        static_assert(sizeof(long long) == 8);\r\n        template &lt;&gt; struct select_npy_type&lt;long long&gt; { const static NPY_TYPES type = NPY_INT64; };\r\n        static_assert(sizeof(unsigned long long) == 8);\r\n        template &lt;&gt; struct select_npy_type&lt;unsigned long long&gt; { const static NPY_TYPES type = NPY_UINT64; };\r\n\/\/ TODO: add int, long, etc.<\/pre>\n<p>\u2193<\/p>\n<pre class=\"lang:c++ decode:true \">\/\/ Sanity checks; comment them out or change the numpy type below if you're compiling on\r\n\/\/ a platform where they don't apply\r\n\/\/        static_assert(sizeof(long long) == 8);\r\n\/\/        template &lt;&gt; struct select_npy_type&lt;long long&gt; { const static NPY_TYPES type = NPY_INT64; };\r\n\/\/        static_assert(sizeof(unsigned long long) == 8);\r\n\/\/        template &lt;&gt; struct select_npy_type&lt;unsigned long long&gt; { const static NPY_TYPES type = NPY_UINT64; };\r\n\/\/ TODO: add int, long, etc.<\/pre>\n<p>\u529b\u6280\u306a\u5bfe\u51e6\u3067\u3059\u304c\uff0c\u51e6\u7406\u306b\u554f\u984c\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u826f\u3057\u3068\u3057\u307e\u3059\uff0e<\/p>\n<h2>CMakeLists.txt<\/h2>\n<p>\u500b\u4eba\u7684\u306b\u306f\u3053\u308c\u3092\u66f8\u3044\u3066Make\u3059\u308b\u306e\u304c\u304a\u52e7\u3081\u3067\u3059\uff0e<\/p>\n<p>\u4eca\u56de\u306f\uff0cC++11\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u304c\u300cplt\u300d\u3068\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"CMakeLists.txt\">cmake_minimum_required(VERSION 3.14)\r\nproject(plt)\r\n\r\nset(CMAKE_CXX_STANDARD 11)\r\n\r\nadd_executable(plt main.cpp)\r\n\r\n# matplotlibcpp\u3067\u4f7f\u3046Python\u3068Numpy\u3092\u63a2\u3059\r\nfind_package(Python3 COMPONENTS Development NumPy)\r\ntarget_include_directories(plt PRIVATE ${Python3_INCLUDE_DIRS} ${Python3_NumPy_INCLUDE_DIRS})\r\ntarget_link_libraries(plt Python3::Python Python3::NumPy)\r\n<\/pre>\n<p>cmake\u306e\u6700\u4f4e\u4fdd\u8a3c\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u306a\u3093\u3067\u3082\u3044\u3044\u3067\u3059\uff0e<\/p>\n<p>\u30d3\u30eb\u30c9\u3068\u5b9f\u884c\u306e\u4ed5\u65b9\u306f\uff0c<\/p>\n<pre class=\"lang:sh decode:true\" title=\"execution\">$ cd build\r\n$ cmake ..\r\n$ make\r\n$ .\/plt<\/pre>\n<p>\u3067\u3059\uff0c\u7c21\u5358\u3067\u3059\u306d\uff0e<\/p>\n<p>\u3061\u306a\u307f\u306b\u4e00\u5ea6cmake\u3057\u305f\u3089\uff0c\u305d\u308c\u4ee5\u964d\u306fmake\u3060\u3051\u3067OK\u3067\u3059\uff0e<\/p>\n<p>\u305d\u308c\u3067\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092main.cpp\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\uff0e<\/p>\n<h2>\u52d5\u4f5c\u78ba\u8a8d<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u52d5\u4f5c\u78ba\u8a8d\u3068\u3057\u3066\uff0c\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u66f8\u304d\u307e\u3057\u3087\u3046\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"matplotlib-cpp sample1\">#include &lt;iostream&gt;\r\n\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\n\r\nint main() {\r\n    plt::plot({1, 2, 4, 8, 16});\r\n    plt::show();\r\n    \r\n    return 0;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-828\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_1-e1588822315773.png\" alt=\"matplotlib-cpp sample1\" width=\"800\" height=\"600\" \/><\/p>\n<p>\u3046\u307e\u304f\u63cf\u753b\u3055\u308c\u3066\u3044\u307e\u3059\u306d\uff0e<\/p>\n<p>\u3072\u3068\u307e\u305a\uff0cPython\u3068NumPy\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n<h2>vector\u3067x, y\u3092\u6307\u5b9a\u3059\u308b<\/h2>\n<p>\u3053\u308c\u304c\u666e\u901a\u306e\u4f7f\u3044\u65b9\u3067\u3057\u3087\u3046\u304b\uff0e<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u30b5\u30a4\u30f3\u30ab\u30fc\u30d6\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"matplotlibcpp\">#include &lt;iostream&gt;\r\n#include &lt;cmath&gt;\r\n\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\n\r\nusing namespace std;\r\n\r\nint main() {\r\n\r\n    int n = 1000;\r\n    vector&lt;double&gt; x(n), y(n);\r\n\r\n    for(int i = 0; i &lt; n; ++i){\r\n        x[i] = i;\r\n        y[i] = sin(0.1 * i);\r\n    }\r\n\r\n    plt::plot(x, y);\r\n    plt::show();\r\n\r\n    return 0;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-829\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_2-e1588823317393.png\" alt=\"matplotlib-cpp\" width=\"800\" height=\"384\" \/><br \/>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7123758399787647\" data-ad-slot=\"1665651601\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h2>\u51e1\u4f8b\u3092\u3064\u3051\u308b<\/h2>\n<p>\u8907\u6570\u306e\u30b0\u30e9\u30d5\u3092\u63cf\u753b\u3059\u308b\u969b\u306b\u306f\uff0c\u30b0\u30e9\u30d5\u306b\u51e1\u4f8b\u3092\u4ed8\u3051\u305f\u3044\u3068\u304d\u304c\u3042\u308a\u307e\u3059\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"matplotlib-cpp\">#include &lt;iostream&gt;\r\n#include &lt;cmath&gt;\r\n\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\n\r\nusing namespace std;\r\n\r\nint main() {\r\n\r\n    int n = 1000;\r\n    vector&lt;double&gt; x(n), y(n), z(n);\r\n\r\n    for(int i = 0; i &lt; n; ++i){\r\n        x[i] = i;\r\n        y[i] = sin(0.1 * i);\r\n        z[i] = 0.05 * i - 3;\r\n    }\r\n\r\n    plt::named_plot(\"sin(0.1x)\", x, y);\r\n    plt::named_plot(\"0.05x-3\", x, z);\r\n\r\n    plt::legend();\r\n    plt::show();\r\n\r\n    return 0;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-830\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_3-e1588823733323.png\" alt=\"matplotlib-cpp\" width=\"800\" height=\"600\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b<span class=\"lang:c++ decode:true crayon-inline \">named_plot()<\/span>\u00a0\u3092\u4f7f\u3046\u304b\uff0cmap\u3092\u4f7f\u3063\u3066<strong>\u5b9f\u969b\u306ematplotilb\u306e\u5f15\u6570\u540d\u306b\u5024\u3092\u6e21\u3059<\/strong>\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p>\u307e\u305f\uff0c\u3053\u306e\u969b\u8272\u3005\u306a\u30b0\u30e9\u30d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528\u53ef\u80fd\u3067\u3059\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"matplotlib-cpp\">#include &lt;iostream&gt;\r\n#include &lt;cmath&gt;\r\n\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\n\r\nusing namespace std;\r\n\r\nint main() {\r\n\r\n    int n = 1000;\r\n    vector&lt;double&gt; x(n), y(n), z(n);\r\n\r\n    for(int i = 0; i &lt; n; ++i){\r\n        x[i] = i;\r\n        y[i] = sin(0.1 * i);\r\n        z[i] = 0.05 * i - 3;\r\n    }\r\n\r\n    map&lt;string, string&gt; args1{\r\n            {\"label\", \"sin(0.1x)\"},\r\n            {\"c\", \"blue\"}\r\n    };\r\n    plt::plot(x, y, args1);\r\n\r\n    map&lt;string, string&gt; args2{\r\n            {\"label\", \"0.05x-3\"},\r\n            {\"c\", \"red\"}\r\n    };\r\n    plt::plot(x, z, args2);\r\n\r\n    plt::legend();\r\n    plt::show();\r\n\r\n    return 0;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-831\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_4-e1588823975842.png\" alt=\"matplotlib-cpp\" width=\"800\" height=\"600\" \/><\/p>\n<h2>\u8907\u6570\u30b0\u30e9\u30d5\u306e\u63cf\u753b<\/h2>\n<p>\u8907\u6570\u306e\u30b0\u30e9\u30d5\u3092\u5225\u3005\u3067\u63cf\u753b\u3057\u305f\u3044\u3068\u304d\u306f\uff0cPython\u306ematplotlib\u540c\u69d8\uff0c<span class=\"lang:c++ decode:true crayon-inline \">subplot<\/span>\u00a0\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\uff0e<\/p>\n<pre class=\"lang:c++ decode:true \" title=\"matplotlib-cpp\">#include &lt;iostream&gt;\r\n#include &lt;cmath&gt;\r\n\r\n#include \"matplotlibcpp.h\"\r\nnamespace plt = matplotlibcpp;\r\n\r\nusing namespace std;\r\n\r\nint main() {\r\n\r\n    int n = 1000;\r\n    vector&lt;double&gt; x(n), y(n), z(n);\r\n\r\n    for(int i = 0; i &lt; n; ++i){\r\n        x[i] = i;\r\n        y[i] = sin(0.1 * i);\r\n        z[i] = cos(0.05 * i);\r\n    }\r\n\r\n    plt::subplot(2, 1, 1);\r\n    plt::ylabel(\"sin()\");\r\n    plt::plot(x, y);\r\n\r\n    plt::subplot(2, 1, 2);\r\n    plt::ylabel(\"cos()\");\r\n    plt::plot(x, z);\r\n\r\n    plt::show();\r\n\r\n    return 0;\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-836\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_5-e1588824637153.png\" alt=\"matplotlib-cpp\" width=\"800\" height=\"600\" \/><\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u306fmatplotlib-cpp\u3068\u3044\u3046\uff0cPython\u306ematplotlib\u3092C++\u3067\u547c\u3073\u3060\u3059\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\uff0c\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u3057\u304b\u7d39\u4ecb\u3057\u3066\u3044\u307e\u305b\u3093\u304c\uff0c\u30b5\u30e0\u30cd\u3067\u3082\u3042\u308b\u3088\u3046\u306a<strong>3D\u30b0\u30e9\u30d5\u3082\u63cf\u753b\u3067\u304d\u307e\u3059<\/strong>\uff0e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-843\" src=\"https:\/\/hirlab.net\/nblog\/wp-content\/uploads\/2020\/05\/Figure_6-e1588826048762.png\" alt=\"matplotlib-cpp\" width=\"800\" height=\"600\" \/><\/p>\n<p>\u4ed6\u306b\u3082\uff0c<strong>\u4e21\u5bfe\u6570\u30b0\u30e9\u30d5<\/strong>(<span class=\"lang:c++ decode:true crayon-inline \">loglog()<\/span>\u00a0)\u3084<strong>\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0<\/strong>(<span class=\"lang:c++ decode:true crayon-inline \">hist()<\/span>\u00a0)\uff0c<strong>\u30a8\u30e9\u30fc\u30d0\u30fc<\/strong>(<span class=\"lang:c++ decode:true crayon-inline \">errorbar()<\/span>\u00a0)\u306a\u3069\u3082\u63cf\u753b\u53ef\u80fd\u3067\u3059\uff0e<\/p>\n<p>\u307e\u3042\uff0c\u306a\u3093\u3068\u3044\u3063\u3066\u3082matplotlib-cpp\u306f<strong>C++\u306b\u3057\u3066\u306f\u5c11\u91cf\u306e\u30b3\u30fc\u30c9\u3067\u30b0\u30e9\u30d5\u3092\u63cf\u753b\u3067\u304d\u308b\u306e\u304c\u826f\u3044\u6240<\/strong>\u3060\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<p>\u307e\u3060\u4e0d\u5177\u5408\u3082\u5c11\u3057\u3042\u308a\u307e\u3059\u304c\uff0c\u307e\u3060\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\uff0c\u3053\u308c\u304b\u3089\u3055\u3089\u306b\u4f7f\u3044\u52dd\u624b\u304c\u826f\u304f\u306a\u308b\u3067\u3057\u3087\u3046\uff0e<\/p>\n<p>\u30d8\u30c3\u30c0\u30aa\u30f3\u30ea\u306a\u306e\u3082\u50d5\u306f\u597d\u304d\u3067\u3059\uff0e<\/p>\n<p>\u307f\u306a\u3055\u3093\u3082\u4f7f\u3063\u3066\u307f\u3066\u306f\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306ematplotlib\u3092\uff0cC++\u304b\u3089\u547c\u3073\u51fa\u305b\u308b\u30d8\u30c3\u30c0\u30aa\u30f3\u30ea\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3057\u307e\u3059\uff0ematplotlib-cpp\u3067\u3059\uff0e\u8a18\u6cd5\u3082Python\u7248matplotlib\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u306a\u306e\u3067\uff0c\u5c11\u91cf\u306e\u30b3\u30fc\u30c9\u3067\u7dba\u9e97\u306a\u30b0\u30e9\u30d5\u304c\u63cf\u753b\u3067\u304d\u307e\u3059\uff0eC++\u3067\uff01\uff01<\/p>\n","protected":false},"author":1,"featured_media":839,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,25],"class_list":["post-826","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-cpp","tag-c"],"_links":{"self":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/comments?post=826"}],"version-history":[{"count":10,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/826\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/posts\/826\/revisions\/844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/media\/839"}],"wp:attachment":[{"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/media?parent=826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/categories?post=826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirlab.net\/nblog\/wp-json\/wp\/v2\/tags?post=826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}