Skip to content

Commit

Permalink
Minor improvements in odak.visualize.plotly.plot2dshow().
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Nov 14, 2024
1 parent 19662d3 commit 7c512b8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions odak/visualize/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"]):
Expand All @@ -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"],
)


Expand Down

0 comments on commit 7c512b8

Please sign in to comment.