tangram.plot_utils.ordered_predictions

tangram.plot_utils.ordered_predictions(xs, ys, preds, reverse=False)

Utility function that orders 2d points based on values associated to each point.

Parameters
  • xs (Pandas series) – Sequence of x coordinates (floats).

  • ys (Pandas series) – Sequence of y coordinates (floats).

  • preds (Pandas series) – Sequence of spatial prediction.

  • reverse (bool) – Optional. False will sort ascending, True will sort descending. Default is False.

Returns

Returns the ordered xs, ys, preds.