yt.utilities.lib.cykdtree.plot module

yt.utilities.lib.cykdtree.plot.plot2D_serial(tree, pts=None, label_boxes=False, **kwargs)[source]

Plot a 2D kd-tree constructed in serial.

Parameters:
  • tree (cykdtree.kdtree.PyKDTree) – kd-tree class.

  • pts (np.ndarray, optional) – Points contained by the kdtree.

  • label_boxes (bool) – If True, leaves in the tree are labeled with their index. Defaults to False.

:param Additional keywords are passed to cykdtree.plot._plot2D_root().:

Returns:

:obj:`matplotlib.pyplot.Axes`

Return type:

Axes containing the plot.