Files
mimaki/show_hpgl.py
2026-02-03 21:28:22 +01:00

12 lines
259 B
Python

"""Load an HPGL file and show it in a window."""
from Plotter import *
from Command import *
from Program import *
p = Program.parsefile('output/hpgl/ag.hpgl')
print(str(p))
p = p.flip()
p = p.rotate(270)
print(p.winsize[0] / 40, p.winsize[1] / 40)
p.show()