Choosing the thumbnail figureΒΆ

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.

../_images/sphx_glr_plot_point_colors_001.png
# 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)

Generated by Sphinx-Gallery