comparison utils.py @ 11:a76dfceb62e0 draft

planemo upload for repository https://github.com/goeckslab/gleam commit bc50fef8acb44aca15d0a1746e6c0c967da5bb17
author goeckslab
date Fri, 28 Nov 2025 15:46:05 +0000
parents 4bd75b45a7a1
children
comparison
equal deleted inserted replaced
10:49f73a3c12f3 11:a76dfceb62e0
244 244
245 245
246 def customize_figure_layout(fig, margin_dict=None): 246 def customize_figure_layout(fig, margin_dict=None):
247 if margin_dict is None: 247 if margin_dict is None:
248 margin_dict = {"l": 40, "r": 40, "t": 40, "b": 40} 248 margin_dict = {"l": 40, "r": 40, "t": 40, "b": 40}
249 fig.update_layout(margin=margin_dict) 249 fig.update_layout(
250 margin=margin_dict,
251 plot_bgcolor="#ffffff",
252 paper_bgcolor="#ffffff",
253 )
254 fig.update_xaxes(gridcolor="#e8e8e8")
255 fig.update_yaxes(gridcolor="#e8e8e8")
250 return fig 256 return fig
251 257
252 258
253 def add_plot_to_html(fig, include_plotlyjs=True) -> str: 259 def add_plot_to_html(fig, include_plotlyjs=True) -> str:
254 custom_margin = {"l": 40, "r": 40, "t": 60, "b": 60} 260 custom_margin = {"l": 40, "r": 40, "t": 60, "b": 60}