Bugfix: title_style was not used to style the axis title

This commit is contained in:
Sebastian Woetzel 2019-12-09 20:08:16 +01:00 committed by Florian Dehau
parent e0083fb8de
commit bbd4363fa9

View file

@ -360,12 +360,12 @@ where
if let Some((x, y)) = layout.title_x {
let title = self.x_axis.title.unwrap();
buf.set_string(x, y, title, self.x_axis.style);
buf.set_string(x, y, title, self.x_axis.title_style);
}
if let Some((x, y)) = layout.title_y {
let title = self.y_axis.title.unwrap();
buf.set_string(x, y, title, self.y_axis.style);
buf.set_string(x, y, title, self.y_axis.title_style);
}
if let Some(y) = layout.label_x {