Skip to content

Commit

Permalink
Update plotting.py colors = None
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
zlatko-minev authored May 21, 2024
1 parent 7f2bccd commit 3b98035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyEPR/toolbox/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def get_color_cycle(n, colormap=None, start=0., stop=1., format='hex'):
colormap = colormap or default_colormap()

pts = np.linspace(start, stop, n)
colors = None
if format == 'hex':
colors = [rgb2hex(colormap(pt)) for pt in pts]
return colors
Expand Down

0 comments on commit 3b98035

Please sign in to comment.