QCustomPlot Discussion and Comments

Remove vertical axisReturn to overview

I have a function

if (!graphic->legend->selectedItems().isEmpty())
    {
        m_number = posNumberSelectLine();

        graphic->axisRect(0)->removeAxis(graphic->graph(m_number)->valueAxis());

        graphic->removeGraph(m_number);

        graphic->replot();
    }

When calling the method replot(), output to the console
virtual QPointF QCPItemPosition::pixelPosition() const Item position type y is ptPlotCoords, but no axes were defined

Issue resolved