目录

showit

Latest Version Build Status

simple and sensible display of images in python

Really simple image display with matplotlib. Just shows images. No axes, no interpolation, no frills.

install

pip install showit

usage

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 : color map to use (default gray)
  • bar : whether to show a color bar (default False)
  • nans : whether to replace NaNs with 0 (default True)
  • clim : limit for colormap (default None)
  • size : size of figure (default 7)
  • ax : an existing axis to plot into (default None)

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)

options

  • cmap : color map to use (default gray)
  • bar : whether to show a color bar (default False)
  • nans : whether to replace NaNs with 0 (default True)
  • clim : limit for colormap (default None)
  • grid : grid dimensions to use (default is largest square grid)
  • size : size of figure (default 7)
  • axis : which axis to index images with (default 0)
  • titles : titles to add to each image (default None)
关于

基于 matplotlib 的简洁图像显示工具,专注于快速展示图像,不显示坐标轴、不过度渲染。

67.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号