Skip to content

syrkis/esch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esch

esch is a layered visualization library, supporting SVG animation.

import esch
import numpy as np

x = np.random.randn((3, 100, 100))  # <- init data
e = esch.init(x.shape)              # <- make a plot object with shape (small_multiples x height x width)
e = esch.tile(e, x)                 # <- add data to the e object

esch is best used by making a function constructuor

def tile_fn(x):
    return esch.tile(esch.init(x.shape), x)

TODO:

  1. sims stuff variable pos.
  2. Default font size to 12pt across sizes
  3. Add mesh plot for
  4. Known issue is that for animation, fill is determined by first value (and will thus not flip if sign changes during animation).
  5. Logic to infer if we have animation is dump. Assumes one dim is 20x times another. Many times that is not the case
  6. Minimise svg size with rounded floats.

About

An attempted Digital twin of M. C. Escher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages