{"id":6970,"date":"2023-11-09T10:34:57","date_gmt":"2023-11-09T01:34:57","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/?p=6970"},"modified":"2023-11-17T14:46:30","modified_gmt":"2023-11-17T05:46:30","slug":"matplotlib-%e3%81%a7%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f-mp4-%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%af-windows-%e3%81%ae-edge-%e3%81%a7%e3%81%af%e8%a6%8b%e3%82%8b%e3%81%93%e3%81%a8%e3%81%8c","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/6970\/","title":{"rendered":"Matplotlib \u3067\u4f5c\u6210\u3057\u305f mp4 \u30d5\u30a1\u30a4\u30eb\u306f Windows \u306e Edge \u3067\u306f\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044"},"content":{"rendered":"<p>\u6388\u696d\u3067\u300c<a href=\"https:\/\/home.hirosaki-u.ac.jp\/relativity\/%e3%82%b3%e3%83%b3%e3%83%94%e3%83%a5%e3%83%bc%e3%82%bf%e6%bc%94%e7%bf%92\/python-%e3%81%a7%e3%82%b3%e3%83%b3%e3%83%94%e3%83%a5%e3%83%bc%e3%82%bf%e6%bc%94%e7%bf%92\/matplotlib-%e3%81%a7%e3%82%a2%e3%83%8b%e3%83%a1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\">Matplotlib \u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3<\/a>\u300d\u3092\u3084\u3063\u3066\u3066\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u4f5c\u6210\u3057\u305f mp4 \u30d5\u30a1\u30a4\u30eb\u3092 Microsoft Edge \u3067\u898b\u3088\u3046\u3068\u3057\u3066\u3082\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002Mac \u306e Edge \u3067\u306f\u898b\u3048\u308b\u3057\uff0c\u540c\u3058 Windows \u3067\u3082 Firefox \u306a\u3089\u898b\u3048\u308b\u3002<!--more--><\/p>\n<h3>\u72b6\u6cc1<\/h3>\n<p style=\"padding-left: 40px;\">\u5f18\u5927 JupyterHub \u306e Python \u3067\u8a72\u5f53\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\uff0c<br \/>\n<code>ani.save(\"anim01.mp4\")<\/code> \u306b\u3088\u3063\u3066\uff0c<br \/>\nJupyterHub \u306e\u30db\u30fc\u30e0\u306b\uff0c<br \/>\n<code>anim01.mp4<\/code><br \/>\n\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\nWeb \u30d6\u30e9\u30a6\u30b6\u3067 JupyterHub \u306e\u30db\u30fc\u30e0\u306b\u3042\u308b\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\uff0cFirefox \u3067\u306f\u518d\u751f\u3055\u308c\u308b\u304c\uff0cWindows \u306e Edge \u3067\u306f\u518d\u751f\u3055\u308c\u306a\u3044\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u5b9f\u7fd2\u5ba4\u306e Windows \u3060\u3051\u3067\u306a\u304f\uff0c\u7814\u7a76\u5ba4\u306e Windows \u6a5f\u306e Edge \u3067 JupyterHub \u306e\u30db\u30fc\u30e0\u306b\u4f5c\u6210\u3055\u308c\u305f<br \/>\n<code>anim01.mp4<\/code> \u306a\u3069\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\u3084\u306f\u308a\u518d\u751f\u3055\u308c\u306a\u3044\uff0c<br \/>\n\u305f\u3060\u3057\uff0c\u3044\u3063\u305f\u3093\u30ed\u30fc\u30ab\u30eb\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\uff0c\u3042\u3089\u305f\u3081\u3066 Edge \u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u958b\u304f\u306a\u3069\u3068\u3059\u308b\u3068\u518d\u751f\u3067\u304d\u308b\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u306a\u306e\u3067\uff0c<span style=\"font-family: helvetica, arial, sans-serif;\"><strong>JupyterHub (Jupyter Notebook) \u4e0a\u306b\u3042\u308b mp4 \u30d5\u30a1\u30a4\u30eb\u3092 Web \u30d6\u30e9\u30a6\u30b6\uff08Windows \u306e Edge\uff0c\u3082\u3057\u304b\u3057\u305f\u3089 Chrome \u7cfb\u5168\u822c\uff1f\uff09\u3067\u76f4\u63a5\u30af\u30ea\u30c3\u30af\u3057\u3066\u518d\u751f\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u304d\u3060\u3051\u306e\u554f\u984c\u3068\u601d\u308f\u308c\u308b<\/strong><\/span>\u3002<\/p>\n<h3>\u56de\u907f\u7b56<\/h3>\n<p>\u56de\u907f\u7b56\u3068\u3057\u3066\u306f\uff0cFirefox \u3092\u4f7f\u3046\u304b\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n<pre># \u52d5\u753b\u3092 jupyterhub \u306e\u30db\u30fc\u30e0\u306b mp4 \u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3002\r\nani.save(\"anim01.mp4\")<\/pre>\n<p>\u306e\u90e8\u5206\u3092\uff0c\u4e92\u63db\u6027\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b<\/p>\n<pre>ani.save(\"anim01.gif\")\r\n# \u52d5\u753b\u306e\u89e3\u50cf\u5ea6\u3092\u6307\u5b9a\u3057\u305f\u3044\u306e\u306a\u3089 ani.save(\"anim01.gif\", dpi=144)<\/pre>\n<p>\u3068\u3067\u3082\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3060\u3068\uff0cEdge \u3067\u3082\u898b\u308c\u307e\u3059\u3002<\/p>\n<p>JupyterHub \u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u3068\u3044\u3046\u624b\u3082\u3042\u308b\u304b\u3082\u77e5\u308c\u306a\u3044\u304c\uff0c\u7ba1\u7406\u8005\u3067\u306a\u3044\u79c1\u306e\u624b\u306b\u306f\u4f59\u308b\u3057\uff0c\u307e\u305f\uff0c\u6700\u8fd1\u306e JupyterHub \u306f\uff08\u3055\u308f\u3063\u305f\u3053\u3068\u306a\u3044\u3051\u3069\uff09JupyterLab \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u306a\u308b\u306e\u3067\uff0c\u30de\u30cb\u30e5\u30a2\u30eb\u3084\u3089\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3084\u3089\uff0c\u5168\u90e8\u66f8\u304d\u76f4\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3093\u3060\u3088\u306d\u3047\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6388\u696d\u3067\u300cMatplotlib \u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u300d\u3092\u3084\u3063\u3066\u3066\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u4f5c\u6210\u3057\u305f mp4 \u30d5\u30a1\u30a4\u30eb\u3092 Microsoft Edge \u3067\u898b\u3088\u3046\u3068\u3057\u3066\u3082\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002Mac \u306e Edge \u3067\u306f\u898b\u3048\u308b\u3057\uff0c\u540c\u3058 Windows \u3067\u3082 Firefox \u306a\u3089\u898b\u3048\u308b\u3002<\/p><p><a class=\"more-link btn\" href=\"https:\/\/home.hirosaki-u.ac.jp\/relativity\/6970\/\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-6970","post","type-post","status-publish","format-standard","hentry","category-matplotlib","nodate","item-wrap"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/posts\/6970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/comments?post=6970"}],"version-history":[{"count":10,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/posts\/6970\/revisions"}],"predecessor-version":[{"id":7019,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/posts\/6970\/revisions\/7019"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/media?parent=6970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/categories?post=6970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/relativity\/wp-json\/wp\/v2\/tags?post=6970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}