Bugfix: title_style was not used to style the axis title

pull/212/head
Sebastian Woetzel 5 years ago committed by Florian Dehau
parent e0083fb8de
commit bbd4363fa9

@ -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 {

Loading…
Cancel
Save