Merge pull request #7 from freeman-lab/dg-add-titles-to-tile Allow for the addition of titles to tile
Merge pull request #7 from freeman-lab/dg-add-titles-to-tile
Allow for the addition of titles to tile
simple and sensible display of images in python
Really simple image display with matplotlib. Just shows images. No axes, no interpolation, no frills.
matplotlib
pip install showit
image
displays a 2D or 3D array as an image
from numpy import random from showit import image im = random.rand(25, 25, 3) image(im)
options
cmap
gray
bar
False
nans
True
clim
None
size
7
ax
tile
displays multiple 2D or 3D images as tiles in a grid
from numpy import random from showit import tile ims = random.rand(9, 25, 25, 3) tile(ims)
grid
axis
0
titles
基于 matplotlib 的简洁图像显示工具,专注于快速展示图像,不显示坐标轴、不过度渲染。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
showit
Really simple image display with
matplotlib. Just shows images. No axes, no interpolation, no frills.install
usage
imagedisplays a 2D or 3D array as an image
options
cmap: color map to use (defaultgray)bar: whether to show a color bar (defaultFalse)nans: whether to replace NaNs with 0 (defaultTrue)clim: limit for colormap (defaultNone)size: size of figure (default7)ax: an existing axis to plot into (defaultNone)tiledisplays multiple 2D or 3D images as tiles in a grid
options
cmap: color map to use (defaultgray)bar: whether to show a color bar (defaultFalse)nans: whether to replace NaNs with 0 (defaultTrue)clim: limit for colormap (defaultNone)grid: grid dimensions to use (default is largest square grid)size: size of figure (default7)axis: which axis to index images with (default0)titles: titles to add to each image (defaultNone)