Skip to content

Commit 583a02f

Browse files
committed
don't clear the canvas between init and setup()
- preserves any drawing done outside all the function defs
1 parent ef40660 commit 583a02f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plotdevice/run/sandbox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def run(self, method=None, cmyk=False):
157157
return check
158158

159159
# Clear the canvas
160-
self.canvas.clear()
160+
if method != 'setup':
161+
self.canvas.clear()
161162

162163
# Reset the context state (and bind the .gfx objects as a side-effect)
163164
self.context._resetContext()

0 commit comments

Comments
 (0)