Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
else:
labels.append("%s (%d kB)" % (p, sz / 1000.))
values.append(sz)
- labels.append("Other (%d kB)" % (other_value / 1000.))
- values.append(other_value)
+ if other_value != 0:
+ labels.append("Other (%d kB)" % (other_value / 1000.))
+ values.append(other_value)
plt.figure()
patches, texts, autotexts = plt.pie(values, labels=labels,