Skip to content

Commit

Permalink
update plotly plot look
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Sep 21, 2022
1 parent 43a048e commit 9500547
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions src/pysme/gui/plot_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,48 @@ def __init__(
{
"title": f"Segment {i}",
"annotations": annotations[i],
"xaxis": {"range": list(self.wran[i])},
"yaxis": {"autorange": True},
"xaxis": {
"range": list(self.wran[i]),
"linecolor": "black",
"linewidth": 2.4,
"mirror": True,
"ticks": "outside",
"tickcolor": "black",
},
"yaxis": {
"autorange": True,
"linecolor": "black",
"linewidth": 2.4,
"mirror": True,
"ticks": "outside",
"tickcolor": "black",
},
},
],
}
steps += [step]

layout = {
"dragmode": "select",
"plot_bgcolor": "#fff",
"selectdirection": "h",
"title": f"Segment {self.segment}",
"xaxis": {"title": "Wavelength [Å]"},
"yaxis": {"title": "Intensity"},
"xaxis": {
"title": "Wavelength [Å]",
"linecolor": "black",
"linewidth": 2.4,
"mirror": True,
"ticks": "outside",
"tickcolor": "black",
},
"yaxis": {
"title": "Intensity",
"linecolor": "black",
"linewidth": 2.4,
"mirror": True,
"ticks": "outside",
"tickcolor": "black",
},
"annotations": annotations[self.segment],
"sliders": [{"active": self.segment, "steps": steps}],
"legend": {"traceorder": "reversed"},
Expand Down

0 comments on commit 9500547

Please sign in to comment.