#! /usr/bin/env python

import sys

import matplotlib.pyplot as plt
from chessplotlib.pgn import PGNViewer
import chess.pgn

if __name__ == "__main__":
    fig, ax = plt.subplots(1, 1)
    game = chess.pgn.read_game(open(sys.argv[1]))
    viewer = PGNViewer(fig, ax, game)
    plt.show()

