Skip to content

Commit

Permalink
Add individual colors to a CellTrace (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Dec 18, 2020
1 parent 8a042a4 commit 3f2b585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bsb/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CellTrace:
def __init__(self, meta, data):
self.meta = meta
self.data = data
self.color = None


class CellTraces:
Expand Down Expand Up @@ -868,7 +869,7 @@ def plot_traces(traces, fig=None, show=True, legend=True, cutoff=0, x=None):
name=legends[j],
showlegend=showlegend,
mode="lines",
marker=dict(color=traces.colors[j]),
marker=dict(color=trace.color or traces.colors[j]),
),
col=1,
row=i + 1,
Expand Down

0 comments on commit 3f2b585

Please sign in to comment.