The function
Optional custom canvas context to draw on
Domain over which to plot (in units of the function, not pixels)
Whether to plot the derivative of the inverse of the function (only for scalar2d)
Stroke width
Resolution (distance in pixels between sampled points), higher values result in faster plotting but less smooth plots
Scale, defaults to 1, divided by 100 internally for finer control
Stroke color
x-offset (canvas translation), defaults to canvas center
y-offset (canvas translation), defaults to canvas center
Plots the first-order derivative of an explicit or inverse function.