Commit c869e6dd authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

implement colors for more than 10 files

parent 97598946
Pipeline #11518 passed with stages
in 12 minutes and 5 seconds
...@@ -225,10 +225,12 @@ def main(command_line_parameters=None): ...@@ -225,10 +225,12 @@ def main(command_line_parameters=None):
args = command_line_arguments(command_line_parameters) args = command_line_arguments(command_line_parameters)
# get some colors for plotting # get some colors for plotting
# cmap = pyplot.cm.get_cmap(name='magma') if len(args.dev_files) > 10:
# colors = [cmap(i) for i in numpy.linspace(0, 1.0, len(args.dev_files)+1)] cmap = pyplot.cm.get_cmap(name='magma')
# matplotlib 2.0 default color cycler list: Vega category10 palette colors = [cmap(i) for i in numpy.linspace(0, 1.0, len(args.dev_files) + 1)]
colors = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', else:
# matplotlib 2.0 default color cycler list: Vega category10 palette
colors = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728',
'#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f',
'#bcbd22', '#17becf'] '#bcbd22', '#17becf']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment