A basic example

Open in Colab  run this example as a notebook — or grab the .ipynb (also linked at the bottom of the page)

Here is a basic example where we load in some data (a list of arrays - samples by features) and plot all three arrays as points using the ‘.’ format string. Hypertools can handle all format strings supported by matplotlib.

plot basic
/home/docs/checkouts/readthedocs.org/user_builds/hypertools/checkouts/latest/hypertools/plot/backend.py:1353: UserWarning: Failed to switch to any interactive backend (TkAgg, QtAgg, Qt5Agg, Qt4Agg, GTK4Agg, GTK3Agg, WXAgg). Falling back to 'Agg'.
  warnings.warn(BACKEND_WARNING)

# Code source: Andrew Heusser
# License: MIT

# import
import hypertools as hyp

# load example data
data = hyp.load('weights_sample')

# plot
hyp.plot(data, fmt='.')

Total running time of the script: (0 minutes 1.799 seconds)

Gallery generated by Sphinx-Gallery