Commit d2072e69 authored by gijs's avatar gijs

Scaling rotating...

parent f95a2e79
......@@ -13,13 +13,13 @@ import os.path
from flask import Flask, Response, app, request, render_template
marginleft = 30 # margin left in mm
marginbottom = (297 / 3) # margin bottom in mm
marginbottom = (271.75 / 3) # margin bottom in mm
page = {
'left': marginleft * -40,
'right': (210 - marginleft) * 40,
'right': (190 - marginleft) * 40,
'bottom': marginbottom * -40,
'top': (297 - marginbottom) * 40
'top': (271.75 - marginbottom) * 40
}
pen = 1
......
......@@ -25,7 +25,7 @@ while True:
if plot:
try:
plotter.write('RO90;{};PG;'.format(str(plot['hpgl'].decode('utf-8'))))
plotter.write('{};PG;'.format(str(plot['hpgl'].decode('utf-8'))))
plotter._serial_port.flush()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment