Returns a function that maps each index in 0, 1, ..., n-1 to a distinct RGB color; the keyword argument name must be a standard mpl colormap name.
(n, name='hsv')
| 20 | return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()) |
| 21 | |
| 22 | def get_cmap(n, name='hsv'): |
| 23 | '''Returns a function that maps each index in 0, 1, ..., n-1 to a distinct |
| 24 | RGB color; the keyword argument name must be a standard mpl colormap name.''' |
| 25 | return plt.cm.get_cmap(name, n) |
| 26 | |
| 27 | |
| 28 | def plot_with_labels(save_path, lowDWeights, labels, camid): |
no outgoing calls
no test coverage detected