bg color opt

This commit is contained in:
liuhaoyan 2026-08-25 13:14:52 +08:00
parent ff57a5469a
commit 2b77cbad94
1 changed files with 10 additions and 1 deletions

View File

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