MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / kind_plot

Function kind_plot

tests/benchmark_plot.py:62–66  ·  view source on GitHub ↗
(test, kind, zorder)

Source from the content-addressed store, hash-verified

60 plt.legend(kinds, loc=2)
61
62def kind_plot(test, kind, zorder):
63 sizes = sorted(data[test][kind].keys())
64 # Timer isn't any better than micro-second resolution.
65 yvalues = [max(1e-6, data[test][kind][size][5]) for size in sizes]
66 plt.plot(sizes, yvalues, marker='s', zorder=zorder)
67
68if __name__ == '__main__':
69 parser = argparse.ArgumentParser(description='Plotting')

Callers 1

test_plotFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by 1

test_plotFunction · 0.68