An example to demonstrate how to choose which figure is displayed as the
thumbnail if the example generates more than one figure. This is done by
specifying the keyword-value pair sphinx_gallery_thumbnail_number = 2
as a
comment somewhere below the docstring in the example file.
# Code source: Andrew Heusser
# License: MIT
import hypertools as hyp
import scipy.io as sio
import numpy as np
data=sio.loadmat('sample_data/weights.mat')
w=[i for i in data['weights'][0][0:3]]
group=[]
for idx,i in enumerate(w):
tmp=[]
for iidx,ii in enumerate(i):
tmp.append(int(np.random.randint(10, size=1)))
group.append(tmp)
hyp.plot(w,'o',group=group)
Total running time of the script: ( 0 minutes 0.088 seconds)