Skip to content
Yet Another Timeline Implementation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/yati
.gitignore
01_yati_example.py
README.md
example_01.jpg
requirements.txt
setup.py

README.md

yati

Yet Another Timeline Implementation (yati) is high level with ink data rate value.

Result:

Source:

        g = yati.Graph(size=(800, 600))
        gg1 = g.createGroup(name="Suite 1")
        gg1l1 = gg1.createLine(name="AR_0001")
        gg1l1.registerInterval(start=0.0, end=2.5, color=yati.Color.GRAY)
        gg1l1.registerInterval(start=2.5, end=5.0, color=yati.Color.RED)
        gg1l1.registerInterval(start=5.0, end=7.5, color=yati.Color.GREEN)
        gg1l1.registerInterval(start=7.5, end=10.0, color=yati.Color.YELLOW)
        #
        gg1l2 = gg1.createLine(name="AR_0002")
        #
        gg1l2.registerInterval(start=2.5, end=5.0, color=yati.Color.parse(yati.Color.GREEN).createDark(50))
        gg1l2.registerInterval(start=5.0, end=7.5, color=yati.Color.parse(yati.Color.GREEN).createLight(50))
        #
        gg2 = g.createGroup(name="Suite 2")
        #
        for i in range(10):
            gg2l1 = gg2.createLine(name="AR_{num:04d}".format(num=i+10))
            color = random.choice([yati.Color.GREEN, yati.Color.YELLOW, yati.Color.GRAY, yati.Color.ORANGE, yati.Color.RED])
            start = random.choice([0.5, 1.5, 2.5, 3.5, 4.5])
            end = start + random.choice([0.5, 1.5, 2.5, 3.5, 4.5])
            gg2l1.registerInterval(start=start, end=end, color=color)
        #
        gr = yati.GraphRender(graph=g, padding=(0,0,0,100))
        gr.render(filename="1.svg")

Watch theory on YouTube:

Ink-Information Ratio

You can’t perform that action at this time.