Mercurial > repos > goeckslab > pycaret_predict
comparison utils.py @ 15:a2aeeb754d76 draft default tip
planemo upload for repository https://github.com/goeckslab/gleam commit bc50fef8acb44aca15d0a1746e6c0c967da5bb17
| author | goeckslab |
|---|---|
| date | Fri, 28 Nov 2025 15:46:17 +0000 |
| parents | e2a6fed32d54 |
| children |
comparison
equal
deleted
inserted
replaced
| 14:7d78a6afc958 | 15:a2aeeb754d76 |
|---|---|
| 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} |
