add Scatter3D::removeGraphic

This commit is contained in:
2023-10-24 12:15:02 +03:00
parent 876ceec0dc
commit dc5075ad8a
2 changed files with 12 additions and 3 deletions

View File

@@ -109,6 +109,14 @@ void Scatter3D::addGraphic(const QColor & color, float pointSize, Mesh mesh, boo
}
void Scatter3D::removeGraphic(int index) {
if (index < 0 || index >= graphics.size()) return;
canvas->removeSeries(graphics[index].series);
delete graphics[index].series;
graphics.remove(index);
}
void Scatter3D::setLabelAutoRotation(bool on) {
if (on) {
canvas->axisX()->setLabelAutoRotation(90);