Example Plot Volume
"""Auto-generated example: Plot Type: Volume."""
import bencher as bn
from bencher.example.meta.example_meta import BenchableObject
def example_plot_volume(run_cfg: bn.BenchRunCfg | None = None) -> bn.Bench:
"""Plot Type: Volume."""
bench = BenchableObject().to_bench(run_cfg)
res = bench.plot_sweep(input_vars=["float1", "float2", "float3"], result_vars=["distance"])
bench.report.append(res.to_volume())
return bench
if __name__ == "__main__":
bn.run(example_plot_volume, subsampling_divisions=2)