Contents

init(x:y:t:domain:function:)

Creates a mark that graphs a parametric function (x, y) = f(t).

Declaration

nonisolated init(x: LocalizedStringResource, y: LocalizedStringResource, t: LocalizedStringResource, domain: ClosedRange<Double>, function: @escaping  @Sendable (Double) -> (x: Double, y: Double))

Discussion

Parameters:

  • x: The localized string key for the x label.

  • y: The localized string key for the y label.

  • t: The localized string key for the t label.

  • domain: The domain of t. Must be a finite domain.

  • function: The function to graph. Returns a tuple of (x, y) for a value of t.

See Also

Plotting parametric functions