PiDraw API
    Preparing search index...

    Interface PlotOptions

    How a plot is drawn, whatever its construction. The domain is by default what is seen, and no more; samples by default one every 8 pixels.

    interface PlotOptions {
        asymptoteThreshold?: number;
        domain?: Domain;
        image?: Domain;
        maxDepth?: number;
        samples?: number;
        tolerance?: number;
    }

    Hierarchy (View Summary)

    Index
    asymptoteThreshold?: number

    Where a curve is taken for an asymptote, in heights of the graph: a point farther than this from the origin is not drawn, and the curve is cut where it jumps farther than this. 10 by default.

    domain?: Domain

    The values of the variable that are drawn. The default is the one of each figure.

    image?: Domain

    The values of y that are drawn: where the function is out of them, it is not drawn. All by default.

    maxDepth?: number

    How many times an interval may be cut in two to follow a curve that bends. 6 by default.

    samples?: number

    How many samples per unit of the variable the curve starts from, before it is refined where it bends.

    tolerance?: number

    How far from the curve the drawn line may be, in pixels. 0.5 by default.