Skip to content

Commit

Permalink
use the already-existing self.scale quantity for converting media size
Browse files Browse the repository at this point in the history
  • Loading branch information
pmonta committed Nov 6, 2013
1 parent 63432f8 commit b3935b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphtec.py
Expand Up @@ -20,8 +20,7 @@ def start(self):
papertype = "100"
trackenhancing = "0"
orientation = "1"
inches_to_device = 508 # device units: 1/20 mm
page = ["media_size", int(inches_to_device*self.media_size[0]), int(inches_to_device*self.media_size[1])]
page = ["media_size", int(self.scale*self.media_size[0]), int(self.scale*self.media_size[1])]
margintop = 500 # margins in device units
marginright = 320
self.emit("\x1b\x04") # initialize plotte
Expand Down

0 comments on commit b3935b5

Please sign in to comment.