{"author_name":"coffee_kabu","url":"https://coffee-guhaw.hateblo.jp/entry/2025/12/14/000000","width":"100%","title":"\u3010matplotlib\u3011svg\u3067\u3082\u4fdd\u5b58\u3067\u304d\u308b","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","version":"1.0","blog_url":"https://coffee-guhaw.hateblo.jp/","provider_name":"Hatena Blog","categories":["python","matplotlib"],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F12%2F14%2F000000\" title=\"\u3010matplotlib\u3011svg\u3067\u3082\u4fdd\u5b58\u3067\u304d\u308b - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","image_url":null,"description":"\u305d\u308c\u3092svg\u3067\u4fdd\u5b58\u3057\u3066\u3001legend\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u3001\u305d\u306e\u30c7\u30fc\u30bf\u304c\u753b\u50cf\u304b\u3089\u6d88\u3048\u308b\u3088\u3046\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u767a\u898b\u3057\u305f\u306e\u3067\u5229\u7528\u3057\u3066\u3044\u305f\u307e\u305a\u3001matplotlib\u3067\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b \u305d\u3057\u3066\u3001\u3059\u3067\u306b\u4f5c\u6210\u3057\u305f fig = plt.figure(figzsize=[12, 8])\u306e\u4e2d\u304b\u3089\u30c7\u30fc\u30bf\u306e\u90e8\u5206\u3092\u629c\u304d\u51fa\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u4fdd\u5b58\u3059\u308b\u6642\u306bf = BytesIO() plt.savefig(f, format=\"svg\")\u306a\u308b\u3053\u3068\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u304c\u3001\u3053\u308c\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb \u3053\u306e\u3068\u304d\u306b\u3001\u5143\u3005\u306efig\u306e\u30b5\u30a4\u30ba\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u305f\u3081\u3001png\u3067savefig\u3057\u305f\u3068\u304d\u3068svg\u3067\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066savefig\u3057\u305f\u3068\u304d\u3067\u5927\u2026","provider_url":"https://hatena.blog","published":"2025-12-14 00:00:00"}