lib.samples.plotting.plot_contour_2d

lib.samples.plotting.plot_contour_2d(ax, contours, sigmas=2, colors=None, fill=False, lighten=- 0.5, **kwargs)

Plot 2D contours.

Parameters
  • ax (matplotlib.axes.Axes) – Axes where to plot contours.

  • contours (tuple, list, array) – List (or tuple) or arrays with x and y coordinates along first axis forming a contour in the x-y plane. Such array must be given for each confidence level.

  • sigmas (int, list, array, default=2) – Sigma levels to plot. If scalar, plot levels up to (including) sigmas.

  • colors (list, string, tuple) – Single or list of colors. This list is extended to the number of required sigmas with ligthen.

  • fill (bool, default=True) – Whether to fill contours.

  • lighten (float, default=-0.5) – Positive number ligthens colors, negative darkens colors.

  • kwargs (dict) – Arguments for matplotlib.axes.Axes.fill() if fill is True, else for matplotlib.axes.Axes.plot().