section

A cross-section of an integral's solid or a revolution, where a plane x = c or y = c cuts it.

sectionNode
Only withxyzplane
On this page
The solid under a hill over the triangle below y = 2 − x, faint, with a red slab cut through it at x = 0.8.The solid under a hill over the triangle below y = 2 − x, faint, with a red slab cut through it at x = 0.8.

#Attributes

ofRequiredImplicit
The integral or revolution to cut, by #id.
Can be written as shorthand: section:value
xAnimatable
Cuts at x = c.
yAnimatable
Cuts at y = c.
thicknessAnimatable
How thick the slab is, centred on the cut.
Default0
colourAnimatable
The section's colour.
paint
Also written: color
Defaultred
opacityAnimatable
How solid the section is, 0 to 1.
Default0.8
label
Text drawn beside the section, over everything.
hiddenAnimatable
Declared and framed, but not drawn.
Defaultfalse
lock
Stops a reader editing this mark on an editable graph.
Also written: locked
Defaultfalse
layerAnimatable
Has no effect in space, where paint order is depth.
group
The comma-separated groups this mark belongs to, which colour it and name it in the footer's key.

#Derived attributes

Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.

areaDerived
The area of the cut itself, whatever the slab's thickness, in square units of the box.

#Allowed in

#Examples

A slab 0.15 thick cut at x = 1 through the solid under z = 16 − x² − 2y² over [0, 2] × [0, 2].A slab 0.15 thick cut at x = 1 through the solid under z = 16 − x² − 2y² over [0, 2] × [0, 2].
graph:xyz{
    integral#body(of: 16 - x^2 - 2 * y^2; x: [0, 2]; y: [0, 2]; opacity: 0.25)
    section(of: #body; x: 1; thickness: 0.15)
}(
    x domain: [0, 2]
    y domain: [0, 2]
    z domain: [0, 16]
)
The cut at y = 0.5 through the solid under 4 − x − y over a triangle: the area under the trace, with no width.The cut at y = 0.5 through the solid under 4 − x − y over a triangle: the area under the trace, with no width.
graph:xyz{
    integral#wedge(of: 4 - x - y; x: [0, 2]; y: [0, 2 - x]; opacity: 0.25)
    section(of: #wedge; y: 0.5; colour: orange)
}(
    x domain: [0, 2]
    y domain: [0, 2]
    z domain: [0, 4]
)

#Notes

  • Through an integral's solid it is the area under the trace; through a revolution, a disc or a washer.
  • A revolution about x is cut at x only.
  • Space only (graph:xyz).

Last updated