Skip to content

Lirimy/MatrixColormapper.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Show matrix as image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages