Function plot

  • Plot a curve given xdata and ydata

    Parameters

    • xdata: number[]

      x coordinates of the data

    • ydata: number[]

      y coordinates of the data

    • Optionalaxes_options: Partial<axes_options>

      options for the axes example: opt = { bbox : [V2(-100,-100), V2(100,100)], xrange : [-2, 2], yrange : [-2, 2], }

    Returns Diagram