Skip to content

Commit

Permalink
Update tag-by-process uage
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismason-xx committed Aug 26, 2009
1 parent 57c49a1 commit 71bd7dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions seekwatcher
Expand Up @@ -1257,6 +1257,10 @@ for x in graphs:
x[0] = total
total += 1

if len(graphs) == 0:
print "No graphs selected, exiting"
sys.exit(1)

# the bottom graph gets the xticks label,
# but we don't want it to be the stats table
if graphs[-1][1] == 'stats':
Expand Down Expand Up @@ -1344,11 +1348,16 @@ if plot:
for x in all_lines:
x.set_markersize(3)

a.legend(loc=(legend_pos, 0.8), shadow=True, borderpad=0.3,
numpoints=1,
handletextpad = 0.005,
labelspacing = 0.01,
prop=FontProperties(size='x-small') )
if total_graphs == 1:
a.legend(loc=(-0.1,-0.25), ncol=4, columnspacing=0.1,
shadow=True, borderpad=0.3, numpoints=1,
handletextpad = 0.005, labelspacing = 0.01,
prop=FontProperties(size='x-small') )
subplots_adjust(bottom=0.2)
else:
a.legend(loc=(legend_pos, 0.8), shadow=True, borderpad=0.3,
numpoints=1, handletextpad = 0.005, labelspacing = 0.01,
prop=FontProperties(size='x-small') )

# our legend is generated, set the marker size correctly again
for x in all_lines:
Expand Down
2 changes: 1 addition & 1 deletion tag-by-process
Expand Up @@ -21,7 +21,7 @@
# merge processes which have the same command name.
#
# Example:
# tag-by-process -t sda | seekwatcher -f - --only-io-graph
# tag-by-process -t sda | seekwatcher -f - -O io

import sys, os, signal, time, commands, tempfile, signal
from optparse import OptionParser
Expand Down

0 comments on commit 71bd7dd

Please sign in to comment.