MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / setGridVisible

Method setGridVisible

pj_plotting/widget/src/PlotWidgetBase.cpp:409–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void PlotWidgetBase::setGridVisible(bool visible) {
410 plot_->grid->enableX(visible);
411 plot_->grid->enableXMin(visible);
412 plot_->grid->enableY(visible);
413 plot_->grid->enableYMin(visible);
414 replot();
415}
416
417bool PlotWidgetBase::gridVisible() const noexcept {
418 return plot_->grid->xEnabled();

Callers 6

applyPreviewDisplayMethod · 0.45
applyToWidgetFunction · 0.45
applyGlobalTogglesMethod · 0.45
buildGlobalToolbarMethod · 0.45
applySceneControlsToMethod · 0.45

Calls 4

enableXMethod · 0.80
enableXMinMethod · 0.80
enableYMethod · 0.80
enableYMinMethod · 0.80

Tested by

no test coverage detected