When using imshow to display a numpy array filled with identical negative values hovering the mouse over the displayed image throws math domain errors. Hovering the mouse over the plot spews math ...
Community supportUsers in need of help.Users in need of help. I would like to achieve the left image (more vibrant colours for the higher values) with a more recent matplotlib version.
今回はDICOM画像を表示する方法をやっていきます。 画像の表示 DICOM画像を表示する主な方法は2つあります。 matplotlibを使って表示 OpenCVを使って表示 個人的にお勧めは、matplotlibを使って表示する方法ですので、紹介させていただきます。 import pydicom from ...
上記の記事を読んでつまづいたところのメモ。 pyplotはグラフなんかを表示するためのモジュール。 なんとなくは知ってるけど使いこなせてはいないので、改めて使い方を確認。 みたいな書き方ができるようになる。 import matplotlib matplotlib.pyplot.figure() 一番 ...