|
|
@ -154,7 +154,8 @@ class Graph(BaseGraph): |
|
|
|
self.svg.node( |
|
|
|
self.svg.node( |
|
|
|
guides, 'path', |
|
|
|
guides, 'path', |
|
|
|
d='M%f %f v%f' % (x or 0, 0, self.view.height), |
|
|
|
d='M%f %f v%f' % (x or 0, 0, self.view.height), |
|
|
|
class_='%s%sline' % ( |
|
|
|
class_='%s%s%sline' % ( |
|
|
|
|
|
|
|
'axis ' if label == "0" else '', |
|
|
|
'major ' if major else '', |
|
|
|
'major ' if major else '', |
|
|
|
'guide ' if position != 0 and not last_guide else '')) |
|
|
|
'guide ' if position != 0 and not last_guide else '')) |
|
|
|
y += .5 * self.label_font_size + 5 |
|
|
|
y += .5 * self.label_font_size + 5 |
|
|
@ -229,7 +230,8 @@ class Graph(BaseGraph): |
|
|
|
self.svg.node( |
|
|
|
self.svg.node( |
|
|
|
guides, 'path', |
|
|
|
guides, 'path', |
|
|
|
d='M%f %f h%f' % (0, y, self.view.width), |
|
|
|
d='M%f %f h%f' % (0, y, self.view.width), |
|
|
|
class_='%s%sline' % ( |
|
|
|
class_='%s%s%sline' % ( |
|
|
|
|
|
|
|
'axis ' if label == "0" else '', |
|
|
|
'major ' if major else '', |
|
|
|
'major ' if major else '', |
|
|
|
'guide ' if position != 0 else '')) |
|
|
|
'guide ' if position != 0 else '')) |
|
|
|
text = self.svg.node( |
|
|
|
text = self.svg.node( |
|
|
|