bqplot.pyplot.plot

bqplot.pyplot.plot(*args, **kwargs)[source]

Draw lines in the current context figure.

Signature: plot(x, y, **kwargs) or plot(y, **kwargs), depending of the length of the list of positional arguments. In the case where the x array is not provided.

Parameters:
  • x (numpy.ndarray or list, 1d or 2d (optional)) – The x-coordinates of the plotted line. When not provided, the function defaults to numpy.arange(len(y)) x can be 1-dimensional or 2-dimensional.
  • y (numpy.ndarray or list, 1d or 2d) – The y-coordinates of the plotted line. If argument x is 2-dimensional it must also be 2-dimensional.
  • marker_str (string) – string representing line_style, marker and color. For e.g. ‘g–o’, ‘sr’ etc
  • options (dict (default: {})) – Options for the scales to be created. If a scale labeled ‘x’ is required for that mark, options[‘x’] contains optional keyword arguments for the constructor of the corresponding scale type.
  • axes_options (dict (default: {})) – Options for the axes to be created. If an axis labeled ‘x’ is required for that mark, axes_options[‘x’] contains optional keyword arguments for the constructor of the corresponding axis type.
  • figure (Figure or None) – The figure to which the line is to be added. If the value is None, the current figure is used.