Skip to content

Commit

Permalink
Decrease tick fontsize and add more ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismason-xx committed Aug 25, 2009
1 parent bd55981 commit dc6a961
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions seekwatcher
Expand Up @@ -1140,7 +1140,7 @@ if not options.only_io_graph:

# cut down the number of yticks to something more reasonable
ticks = a.get_yticks()
ticks = list(arange(0, ticks[-1] + ticks[-1]/4, ticks[-1]/4))
ticks = list(arange(0, ticks[-1] + ticks[-1]/8, ticks[-1]/8))
a.set_yticks(ticks)

if ticks[-1] < 4:
Expand All @@ -1167,7 +1167,7 @@ if not options.only_io_graph:

# cut down the number of yticks to something more reasonable
ticks = a.get_yticks()
ticks = list(arange(0, ticks[-1] + ticks[-1]/4, ticks[-1]/4))
ticks = list(arange(0, ticks[-1] + ticks[-1]/6, ticks[-1]/4))
a.set_yticks(ticks)
a.set_yticklabels( [ str(int(x)) for x in ticks ])

Expand Down Expand Up @@ -1264,6 +1264,10 @@ for x in xrange(1, total_graphs + 1):
a.set_xticks(xticks)
a.set_xticklabels(xticklabels)

if x <= total_graphs:
for t in a.yaxis.get_majorticklabels():
t.set_fontsize(8)

# create dashed lines for each ytick
ticks = a.get_yticks()
ymin, ymax = a.get_ylim()
Expand Down

0 comments on commit dc6a961

Please sign in to comment.