Fix matplotlib plot margins

This commit is contained in:
allegroai 2020-06-15 22:25:32 +03:00
parent 9c1d08b826
commit bec31c7ac4

View File

@ -315,9 +315,9 @@ def create_image_plot(image_src, title, width=640, height=480, series=None, comm
"layout": { "layout": {
"xaxis": {"visible": False, "range": [0, width]}, "xaxis": {"visible": False, "range": [0, width]},
"yaxis": {"visible": False, "range": [0, height], "scaleanchor": "x"}, "yaxis": {"visible": False, "range": [0, height], "scaleanchor": "x"},
"width": width, # "width": width,
"height": height, # "height": height,
"margin": {'l': 0, 'r': 0, 't': 0, 'b': 0}, "margin": {'l': 0, 'r': 0, 't': 64, 'b': 0},
"images": [{ "images": [{
"sizex": width, "sizex": width,
"sizey": height, "sizey": height,