Coder Social home page Coder Social logo

showit's Introduction

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-again

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)

showit's People

Contributors

freeman-lab avatar polybius00 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.