MCPcopy Create free account
hub / github.com/apache/arrow / plot_1d

Function plot_1d

cpp/src/arrow/acero/hash_join_graphs.py:121–130  ·  view source on GitHub ↗
(test, argname, ax, label=None)

Source from the content-addressed store, hash-verified

119 return '%s: %s' % (argname, argvalue)
120
121def plot_1d(test, argname, ax, label=None):
122 x_axis = test.args[argname]
123 y_axis = test.times
124 ax.plot(x_axis, y_axis, label=label)
125 if is_multiplicative(x_axis):
126 ax.set_xscale('log', base=(x_axis[1] / x_axis[0]))
127 ax.xaxis.set_major_formatter(plt.ScalarFormatter())
128 ax.legend()
129 ax.set_xlabel(argname)
130 ax.set_ylabel('rows/sec')
131
132def plot_2d(test, sorted_argnames, ax, title):
133 assert len(sorted_argnames) == 2

Callers 2

plot_2dFunction · 0.85
mainFunction · 0.85

Calls 1

is_multiplicativeFunction · 0.85

Tested by

no test coverage detected