Skip to content

Commit

Permalink
Differentiates title style classses
Browse files Browse the repository at this point in the history
The main plot title is given an additional class (plot_title) to
differentiate it from from the axis titles, so the it could for example
be styled in boldface using CSS.
  • Loading branch information
sirlark committed Mar 6, 2014
1 parent e62d6d2 commit 2b11e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygal/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def _title(self):
if self.title:
for i, title_line in enumerate(self.title, 1):
self.svg.node(
self.nodes['title'], 'text', class_='title',
self.nodes['title'], 'text', class_='title plot_title',
x=self.width / 2,
y=i * (self.title_font_size + self.spacing)
).text = title_line
Expand Down

0 comments on commit 2b11e16

Please sign in to comment.