{"published":"2024-09-19 00:00:00","type":"rich","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","version":"1.0","description":"img = cv2.imread(fname, cv2.IMREAD_UNCHANGED)height, width = img.shape hist_data = img.flatten() fig = plt.figure(figsize = (20, 10)) ax1 = fig.add_subplot(1, 2, 1) ax1.imshow(img, 'gray')ax1.set_xticks()ax1.set_yticks() # to hide tick values on X and Y axis ax2 = fig.add_subplot(1, 2, 2) ax2.hist(h\u2026","provider_name":"Hatena Blog","categories":["python","\u753b\u50cf\u89e3\u6790"],"title":"\u3010numpy, matplotlib\u3011\u753b\u50cf\u30c7\u30fc\u30bf\u304b\u30891\u6b21\u5143\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u30d7\u30ed\u30c3\u30c8\u3057\u3001\u5143\u306e\u753b\u50cf\u3068\u4e26\u3079\u3066\u8868\u793a\u3057\u305f\u3044","author_name":"coffee_kabu","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2024%2F09%2F19%2F000000\" title=\"\u3010numpy, matplotlib\u3011\u753b\u50cf\u30c7\u30fc\u30bf\u304b\u30891\u6b21\u5143\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u30d7\u30ed\u30c3\u30c8\u3057\u3001\u5143\u306e\u753b\u50cf\u3068\u4e26\u3079\u3066\u8868\u793a\u3057\u305f\u3044 - 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>","width":"100%","image_url":null,"height":"190","url":"https://coffee-guhaw.hateblo.jp/entry/2024/09/19/000000","provider_url":"https://hatena.blog","blog_url":"https://coffee-guhaw.hateblo.jp/"}