Changeset 8fca132 for benchmark


Ignore:
Timestamp:
Aug 17, 2022, 2:47:19 PM (21 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
1b57a38
Parents:
cd3fc46
Message:

Changed plots to use different markers and dotted lines for minimum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/plot.py

    rcd3fc46 r8fca132  
    6969def plot(in_data, x, y, options, prefix):
    7070        fig, ax = plt.subplots()
    71         colors = itertools.cycle(['#006cb4','#0aa000','#ff6600','#8510a1','#0095e3','#fd8f00','#e30002','#8f00d6','#4b009a','#ffff00','#69df00','#fb0300','#b13f00'])
    72         series = {} # scatter data for each individual data point
    73         groups = {} # data points for x value
     71        colors  = itertools.cycle(['#006cb4','#0aa000','#ff6600','#8510a1','#0095e3','#fd8f00','#e30002','#8f00d6','#4b009a','#ffff00','#69df00','#fb0300','#b13f00'])
     72        markers = itertools.cycle(['x', '+', '1', '2', '3', '4'])
     73        series  = {} # scatter data for each individual data point
     74        groups  = {} # data points for x value
    7475
    7576        print("Preparing Data")
     
    116117        for name, data in sorted(series.items()):
    117118                _col = next(colors)
    118                 plt.scatter(data['x'], data['y'], color=_col, label=name[len(prefix):], marker='x')
    119                 plt.plot(lines[name]['x'], lines[name]['min'], '--', color=_col)
     119                _mrk = next(markers)
     120                plt.scatter(data['x'], data['y'], color=_col, label=name[len(prefix):], marker=_mrk)
     121                plt.plot(lines[name]['x'], lines[name]['min'], ':', color=_col)
    120122                plt.plot(lines[name]['x'], lines[name]['max'], '--', color=_col)
    121123                plt.plot(lines[name]['x'], lines[name]['med'], '-', color=_col)
Note: See TracChangeset for help on using the changeset viewer.