From b01be703e5e4452fc2196e7c1d5877f87cdfb6c1 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 23 Jul 2021 10:36:42 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index 80e1494..f9b42b0 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1100,7 +1100,11 @@ def kernel_15( display=False, ) - f = matplotlib.pyplot.figure(figsize=(15, 9)) + f = matplotlib.pyplot.figure(figsize=(8, 16)) + matplotlib.pyplot.subplot(2, 1, 1) + matplotlib.pyplot.imshow(t14) + matplotlib.pyplot.subplot(2, 1, 2) + matplotlib.pyplot.imshow(t32['img_canvas']) matplotlib.pyplot.title( 'name %s, score %s, frame_id %d' % ( t8['name'], @@ -1108,10 +1112,6 @@ def kernel_15( t8.frame_id, ) ) - matplotlib.pyplot.subplot(1, 2, 1) - matplotlib.pyplot.imshow(t14) - matplotlib.pyplot.subplot(1, 2, 2) - matplotlib.pyplot.imshow(t32['img_canvas']) t25 = os.path.join( t30, 'kernel_15-%s-%05d.jpg' % (