Skip to content

Commit

Permalink
Remove 2nd y axis offset correction made unnecessary by r724
Browse files Browse the repository at this point in the history
  • Loading branch information
mleinart committed Mar 23, 2012
1 parent 0c80b96 commit 46b10dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions webapp/graphite/render/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,10 +1224,7 @@ def makeLabel(yValue, yStep=None, ySpan=None):
for value in self.yLabelValuesR:
self.yLabelsR.append( makeLabel(value,self.yStepR,self.ySpanR) )
self.yLabelWidthL = max([self.getExtents(label)['width'] for label in self.yLabelsL])
# The next line seems to set a value much too large in most cases
# By subtracting 10 px, the right side axis looks much nicer.
# Tested with standard, binary, and none yAxis units.
self.yLabelWidthR = max([self.getExtents(label)['width'] for label in self.yLabelsR]) - 10
self.yLabelWidthR = max([self.getExtents(label)['width'] for label in self.yLabelsR])
#scoot the graph over to the left just enough to fit the y-labels

#xMin = self.margin + self.margin + (self.yLabelWidthL * 1.02)
Expand Down

0 comments on commit 46b10dc

Please sign in to comment.