catch keyboard interrupts
This commit is contained in:
parent
cd9a831067
commit
8adb875a88
1 changed files with 3 additions and 1 deletions
4
smem
4
smem
|
|
@ -535,7 +535,7 @@ def showbar(l, columns, sort):
|
||||||
|
|
||||||
#plt.xticks(ind + .5, )
|
#plt.xticks(ind + .5, )
|
||||||
pylab.gca().set_xticks(ind + .5)
|
pylab.gca().set_xticks(ind + .5)
|
||||||
pylab.gca().set_xticklabels([x[1][-1] for x in l], rotation=90)
|
pylab.gca().set_xticklabels([x[1][-1] for x in l], rotation=45)
|
||||||
pylab.legend([p[0] for p in pl], key)
|
pylab.legend([p[0] for p in pl], key)
|
||||||
pylab.show()
|
pylab.show()
|
||||||
|
|
||||||
|
|
@ -608,3 +608,5 @@ try:
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
if e.errno == errno.EPIPE:
|
if e.errno == errno.EPIPE:
|
||||||
pass
|
pass
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue