Changeset 8fca132
- Timestamp:
- Aug 17, 2022, 2:47:19 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 1b57a38
- Parents:
- cd3fc46
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/plot.py
rcd3fc46 r8fca132 69 69 def plot(in_data, x, y, options, prefix): 70 70 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 74 75 75 76 print("Preparing Data") … … 116 117 for name, data in sorted(series.items()): 117 118 _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) 120 122 plt.plot(lines[name]['x'], lines[name]['max'], '--', color=_col) 121 123 plt.plot(lines[name]['x'], lines[name]['med'], '-', color=_col)
Note: See TracChangeset
for help on using the changeset viewer.