diff --git a/src/sweet_rviz_panel.cpp b/src/sweet_rviz_panel.cpp index 1b5b6da..14a0cda 100644 --- a/src/sweet_rviz_panel.cpp +++ b/src/sweet_rviz_panel.cpp @@ -135,10 +135,19 @@ void SweetRvizPanel::initPlots() heading_plot_->yAxis->setRange( -0.5, 0.5); - QPen heading_pen(Qt::red); + QPen heading_pen(Qt::blue); heading_pen.setWidth(3); heading_plot_->graph(0)->setPen(heading_pen); heading_plot_->legend->setVisible(true); + + // bg color + QColor bg_color(240, 240, 240); + + lateral_plot_->setBackground(bg_color); + heading_plot_->setBackground(bg_color); + + lateral_plot_->axisRect()->setBackground(bg_color); + heading_plot_->axisRect()->setBackground(bg_color); } void SweetRvizPanel::onInitialize() {