From c03d4706192776427cb9fd7ceb952d004357f781 Mon Sep 17 00:00:00 2001 From: aaronayres35 <36972686+aaronayres35@users.noreply.github.com> Date: Mon, 21 Jun 2021 05:20:15 -0700 Subject: [PATCH] specify size_or_ary contains ints (#788) --- chaco/plot_graphics_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaco/plot_graphics_context.py b/chaco/plot_graphics_context.py index 268cd8148..84526c0ed 100644 --- a/chaco/plot_graphics_context.py +++ b/chaco/plot_graphics_context.py @@ -34,8 +34,8 @@ def __init__(self, size_or_ary, *args, **kw): scale = kw.pop("dpi", 72.0) / 72.0 if type(size_or_ary) in (list, tuple) and len(size_or_ary) == 2: size_or_ary = ( - size_or_ary[0] * scale + 1, - size_or_ary[1] * scale + 1, + int(size_or_ary[0] * scale + 1), + int(size_or_ary[1] * scale + 1), ) super().__init__(