bg color opt
This commit is contained in:
parent
ff57a5469a
commit
2b77cbad94
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue