Skip to content

Commit

Permalink
set plotly_protzilla as default template
Browse files Browse the repository at this point in the history
  • Loading branch information
ronjakrg committed Nov 17, 2024
1 parent ebb73cb commit 5c0ddf8
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions protzilla/utilities/plot_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@

from protzilla.constants.colors import PROTZILLA_DISCRETE_COLOR_OUTLIER_SEQUENCE

pio.templates["plotly_protzilla"] = go.layout.Template(
layout = {
"title": {
"font": {
"size": 16,
"family": "Arial",
},
"y": 0.98,
"x": 0.5,
"xanchor": "center",
"yanchor": "top",
},

layout = go.Layout(
title={
"font": {
"size": 14,
"size": 16,
"family": "Arial"
},
"colorway": PROTZILLA_DISCRETE_COLOR_OUTLIER_SEQUENCE,
"plot_bgcolor": "white",
"yaxis": {
"gridcolor": "lightgrey",
"zerolinecolor": "lightgrey",
},
"y": 0.98,
"x": 0.5,
"xanchor": "center",
"yanchor": "top"
},
font={
"size": 14,
"family": "Arial"
},
colorway= PROTZILLA_DISCRETE_COLOR_OUTLIER_SEQUENCE,
plot_bgcolor="white",
yaxis={
"gridcolor": "lightgrey",
"zerolinecolor": "lightgrey"
}
)
)
pio.templates["plotly_protzilla"] = go.layout.Template(layout=layout)
pio.templates.default = "plotly_protzilla"

0 comments on commit 5c0ddf8

Please sign in to comment.