shade_points

set_shape.shade_points(aggregator=None, shade_hook=None, agg_hook=None)

Shade the data as infinitesimal points (>> usable for very large datasets!).

This function is based on the functionalities of datashader.mpl_ext.dsshow provided by the matplotlib-extension for β€œdatashader”.

Parameters:
  • aggregator (Reduction, optional) – The reduction to compute per-pixel. The default is ds.mean(β€œval”) where β€œval” represents the data-values.

  • shade_hook (callable, optional) – A callable that takes the image output of the shading pipeline, and returns another Image object. See dynspread() and spread() for examples. The default is partial(ds.tf.dynspread, max_px=50).

  • agg_hook (callable, optional) – A callable that takes the computed aggregate as an argument, and returns another aggregate. This can be used to do preprocessing before the aggregate is converted to an image. The default is None.