The library documents itself · Numeric & optimization
stzMathFigure
34 own methods · 3 forms written with extensions, listed under their method
the source: base/math/stzMathFigure.ring(opens in a new tab) · All classes · The area reference: Numeric & optimization
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 2 come from the library's tests; 3 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzMathFigure(:Fraction, [ :compare = [ [ 3, 4 ], [ 2, 3 ] ] ]). 29 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.
Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Kind
what it isno extension
composed example
o1 = new stzMathFigure(:Fraction, [ :compare = [ [ 3, 4 ], [ 2, 3 ] ] ]) ? o1.Kind() #--> fractioncomposed from the signature, run for this page
Spec
(no comment in the source: the name reads as a sentence) specno extension
composed example
o1 = new stzMathFigure(:Fraction, [ :compare = [ [ 3, 4 ], [ 2, 3 ] ] ]) ? @@( o1.Spec() ) #--> [ [ "compare", [ [ 3, 4 ], [ 2, 3 ] ] ] ]composed from the signature, run for this page
Diagram
the solved picture itself: an stzMathDiagram, with everything one can answer -- ShapeOf, Fact, Violations, the renditions. IT IS A COPY: Haro copies an object a method returns, so a theme or a datum set on it never reaches the figure's own picture. Set the theme and the data THROUGH the figure (SetTheme, SetDatum); found 2026-09-26 when 32 catalogue pictures rendered "dark" came out byte-identical to light.no extension
SetTheme
the theme, on the figure's OWN picture: no second solve, a theme changes only what every role resolves toQCSXTZZZIBWU
Substance
(no comment in the source: the name reads as a sentence) substanceno extension
SetFont
(no comment in the source: the name reads as a sentence) set fontQCSXTZZZIBWU
Layout
the solveQCSXTZZZIBWU
IsSolved
(no comment in the source: the name reads as a sentence) is solvedno extension
composed example
o1 = new stzMathFigure(:Fraction, [ :compare = [ [ 3, 4 ], [ 2, 3 ] ] ]) ? o1.IsSolved() #--> 1composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) violations 1 examples run
aNames = [ [ "1-24", "25-74", "75-199", "200++", "NA" ], [ "1973", "1974", "1975" ] ] oRes = StzMathFigureQ(:ResidualPlot, [ :of = aDeaths, :names = aNames ]) ? oRes.Why() ? len( oRes.Violations() ) #--> a residual-versus-fit of 5 x 3 cells: common 8, residual fourth-spread 1, 4 beyond the outside fences, 2 far out, 3 ringed on another cell's spot; nothing to lay out -- no rule minted an unknown #--> 0library testno extension
LayoutMs
(no comment in the source: the name reads as a sentence) layout msno extension
what was computed and what was solved, in one sentence each: the computed half is the domain file's sentence, the solved half the diagram's own 1 examples run
aNames = [ [ "1-24", "25-74", "75-199", "200++", "NA" ], [ "1973", "1974", "1975" ] ] oRes = StzMathFigureQ(:ResidualPlot, [ :of = aDeaths, :names = aNames ]) ? oRes.Why() ? len( oRes.Violations() ) #--> a residual-versus-fit of 5 x 3 cells: common 8, residual fourth-spread 1, 4 beyond the outside fences, 2 far out, 3 ringed on another cell's spot; nothing to lay out -- no rule minted an unknown #--> 0library testno extension
SampleCount
(no comment in the source: the name reads as a sentence) sample countno extension
PieceCount
(no comment in the source: the name reads as a sentence) piece countno extension
RunCount
the polylines drawn: a piece longer than 64 samples is several runsno extension
Window
the window in the author's units: [ xmin, xmax, ymin, ymax ]no extension
Marks
every mark as [ kind, x, y ] -- "zero", "extremum" or "given"no extension
Zeros
(no comment in the source: the name reads as a sentence) zerosno extension
Extrema
(no comment in the source: the name reads as a sentence) extremano extension
SetDatum
the live figure, and a datum changed in place ------------------------- HARO HANDS BACK A COPY when a method returns an object, so anything that must change THIS figure's picture goes through here, never through Diagram() -- a witness that tampered a copy found nothing.no extension
Pin
a shape whose centre a rule left free is pinned or dragged by the diagram's own gesture; a NOTE is not such a shape -- see MoveNoteTono extension
Unpin
(no comment in the source: the name reads as a sentence) unpinno extension
DragTo
(no comment in the source: the name reads as a sentence) drag tono extension
MoveNoteTo
A NOTE IS MOVED BY ITS OFFSETS. Its place is derived from its mark plus two unknowns, n.ox and n.oy (the free side is the mark's datum), which is what lets every note start inside its leash; a drag by shape (DragTo) wants a free centre and refuses it. This writes the two slots, holds them, and re-solves the rest of the figure around them.no extension
ReleaseNote
(no comment in the source: the name reads as a sentence) release noteno extension
Relayout
(no comment in the source: the name reads as a sentence) relayoutno extension
Text
THE TEXT RENDITION a box plot carries (the Tukey plan's TK3): the five numbers and the box in characters, for a terminal or a test logno extension
ToSVG
the renditionsno extension
ToPNG
(no comment in the source: the name reads as a sentence) to pngno extension
Rendition
(no comment in the source: the name reads as a sentence) renditionno extension
RenditionAs
(no comment in the source: the name reads as a sentence) rendition asno extension
Fact
(no comment in the source: the name reads as a sentence) factno extension
ShapeOf
(no comment in the source: the name reads as a sentence) shape ofno extension
Show
(no comment in the source: the name reads as a sentence) showno extension

