3D Bars
bar3d() over named columns of a dataframe_mojo DataFrame (#743). Each argument names a column instead of holding the values.
Usage
from dataviz import bar3d, save
def main() raises:
# Illustrative counts over a 5-by-4 lattice of conditions.
var x = List[Float64]()
var y = List[Float64]()
var z = List[Float64]()
for row in range(4):
for col in range(5):
x.append(Float64(col))
y.append(Float64(row))
z.append(Float64((col * 3 + row * 5) % 7 + 1))
var c = bar3d(
x, y, z, title="Illustrative Counts Across Two Conditions"
)
save(c, "docs/src/examples/out_bar3d.svg")See Data shapes for shared input conventions.
Args:
df: The frame to read.x: The numeric column for this channel.y: The numeric column for this channel.z: The numeric column for this channel.bar_width: See the list overload.bar_depth: See the list overload.elev: See the list overload.azim: See the list overload.theme: See the list overload.width: See the list overload.height: See the list overload.title: See the list overload.subtitle: See the list overload.
Related
Related charts: 3D Triangulated Surface · Voxels
Relevant API: bar3d