aboutsummaryrefslogtreecommitdiff
path: root/metchart/run.py
blob: a0e4139dfc4b74775ddba498b60654a1246beafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3

import sys
import matplotlib as mpl

from . import customization
from . import manager

def main():
    mpl.use('agg')

    customization.register_units()
    customization.register_colormaps()

    FILE = 'examples/config.yaml'
    if len(sys.argv) > 1:
        FILE = sys.argv[1]

    cfg = manager.Manager(FILE)
    cfg.run_plotters()


if __name__ == '__main__':
    main()