Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.78 KB

README.md

File metadata and controls

64 lines (42 loc) · 1.78 KB

MatrixColormapper

Build Status Coverage Status codecov.io

MatrixColormapper.jl converts matrices to images, according to colormap.

Raindrop example with PerceptualColourMaps.jl
raindrops

Installation

Julia 0.6.x
Requirements: ffmpeg, imagemagick

Pkg.clone("https://github.com/Lirimy/MatrixColormapper.jl")

Usage

Show Matrix, Save Image

using MatrixColormapper

img = matshow(rand(100, 100)) # Image is displayed in Jupyter Notebook
#FileIO.save("sample.png", img)

sample image

Animation

mp4/gif supported.

using MatrixColormapper

openanim("test.gif") do aio
    for i in 1:10
        img = matshow(rand(100, 100))
        addframe(aio, img)
    end
end

sample gif

Color Mapping

Example using ColorSchemes.jl

using MatrixColormapper
using ColorSchemes

schemes # List color schemes
set_colormap(ColorSchemes.darkrainbow)

Acknowledgments

MatrixColormapper.jl contains copy and modification of Plots.jl.
Plots.jl: Copyright (c) 2015: Thomas Breloff.