diff --git a/include/ignition/gui/qml/Chart.qml b/include/ignition/gui/qml/Chart.qml index 7d9279681..cd3a259d7 100644 --- a/include/ignition/gui/qml/Chart.qml +++ b/include/ignition/gui/qml/Chart.qml @@ -515,6 +515,8 @@ Rectangle { */ function appendPoint(_fieldID, _x, _y) { + if (!chart.serieses[_fieldID]) + return; // if this is the first point (if the chart is empty): // set the min/max according to that point's coordinates diff --git a/src/plugins/plotting/TransportPlotting.cc b/src/plugins/plotting/TransportPlotting.cc index a836bc68a..4c2b858a6 100644 --- a/src/plugins/plotting/TransportPlotting.cc +++ b/src/plugins/plotting/TransportPlotting.cc @@ -29,7 +29,7 @@ TransportPlotting::~TransportPlotting() void TransportPlotting::LoadConfig(const tinyxml2::XMLElement *) { if (this->title.empty()) - this->title = "Plotting"; + this->title = "Transport plotting"; } //////////////////////////////////////////