Skip to content

Commit

Permalink
Merge pull request #40 from calebweinreb/random-colors-hotfix
Browse files Browse the repository at this point in the history
use colors in config for trace plot
  • Loading branch information
calebweinreb authored Apr 11, 2024
2 parents 651b406 + 356ccbc commit cb5c916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snub/gui/tracks/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
bound_rois="",
initial_visible_traces=None,
controls_padding_right=10,
colors={},
trace_colors={},
linewidth=1,
yaxis_width=30,
controls_padding_top=5,
Expand Down Expand Up @@ -87,7 +87,7 @@ def __init__(
else:
self.visible_traces = set([])

self.colors = dict(colors)
self.colors = dict(trace_colors)
for label in self.data:
if not label in self.colors:
self.colors[label] = _random_color()
Expand Down

0 comments on commit cb5c916

Please sign in to comment.