How to use the termgraph.termgraph.vertically function in termgraph

To help you get started, we’ve selected a few termgraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mkaz / termgraph / tests / test_termgraph.py View on Github external
def test_vertically_returns_correct_result(self):
        args = {'filename': 'data/ex2.dat', 'title': None, 'width': 50,
                'format': '{:<5.2f}', 'suffix': '', 'no_labels': False,
                'color': None, 'vertical': True, 'stacked': False,
                'different_scale': False, 'calendar': False, 'start_dt': None,
                'custom_tick': '', 'delim': '', 'verbose': False,
                'version': False}
        value = 2.0
        num_blocks = 2
        val_min = 2.0
        color = None
        result = tg.vertically(value, num_blocks, val_min, color, args)
        assert result == [('▇',), ('▇',)]