From bec31c7ac4b792837171848a65302dac9efbae51 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 15 Jun 2020 22:25:32 +0300 Subject: [PATCH] Fix matplotlib plot margins --- trains/utilities/plotly_reporter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trains/utilities/plotly_reporter.py b/trains/utilities/plotly_reporter.py index 8daa93bf..b00d6af2 100644 --- a/trains/utilities/plotly_reporter.py +++ b/trains/utilities/plotly_reporter.py @@ -315,9 +315,9 @@ def create_image_plot(image_src, title, width=640, height=480, series=None, comm "layout": { "xaxis": {"visible": False, "range": [0, width]}, "yaxis": {"visible": False, "range": [0, height], "scaleanchor": "x"}, - "width": width, - "height": height, - "margin": {'l': 0, 'r': 0, 't': 0, 'b': 0}, + # "width": width, + # "height": height, + "margin": {'l': 0, 'r': 0, 't': 64, 'b': 0}, "images": [{ "sizex": width, "sizey": height,