From 7c512b8a01a87c4fa3579c4b6d636424693e8e64 Mon Sep 17 00:00:00 2001 From: kaanaksit Date: Thu, 14 Nov 2024 14:20:05 +0000 Subject: [PATCH] Minor improvements in odak.visualize.plotly.plot2dshow(). --- odak/visualize/plotly.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/odak/visualize/plotly.py b/odak/visualize/plotly.py index 64b6ac85..601575e2 100644 --- a/odak/visualize/plotly.py +++ b/odak/visualize/plotly.py @@ -363,7 +363,9 @@ def __init__( }, color_scale = 'Inferno', shape = [1000, 1000], - margin = [65, 50, 65, 90] + margin = [65, 50, 65, 90], + horizontal_spacing = 0.05, + vertical_spacing = 0.05, ): """ Class for plotting detectors. @@ -399,7 +401,9 @@ def __init__( 'height': shape[1], 'margin': margin, 'xaxis' : xaxis_settings, - 'yaxis' : yaxis_settings + 'yaxis' : yaxis_settings, + 'horizontal spacing' : horizontal_spacing, + 'vertical spacing' : vertical_spacing, } specs = [] for i in range(0, self.settings["row number"]): @@ -413,6 +417,8 @@ def __init__( specs = specs, subplot_titles = self.settings["subplot titles"], row_titles = self.settings["row titles"], + horizontal_spacing = self.settings["horizontal spacing"], + vertical_spacing = self.settings["vertical spacing"], )