[plotting] gradient plot added

This commit is contained in:
mzwiessele 2015-10-05 19:37:19 +01:00
parent 2263df0394
commit e4e4311121

View file

@ -135,8 +135,12 @@ def scatter_label_generator(labels, X, input_1, input_2=None, marker=None):
elif type(ul) is np.int64: elif type(ul) is np.int64:
this_label = 'class %i' % ul this_label = 'class %i' % ul
else: else:
this_label = unicode(ul) try:
this_label = unicode(ul)
except NameError:
#python3
this_label = ul
if marker is not None: if marker is not None:
m = marker.next() m = marker.next()