QCustomPlot Discussion and Comments

Display SubGridReturn to overview

Hi,

..works pretty well except when i want to display On/Off the grid and subgrid of X or Y axis

using QT5.1.1, examples code works well, so not sure why the code below crash.

    plot->xAxis->setLabelFont(config->xAxis->Label.myfont);
    plot->xAxis->setLabelColor(config->xAxis->Label.color);
    plot->xAxis->setTickLabelFont(config->xAxis->Label.myfont);
    if(config->xAxis->log)
    {
        plot->xAxis->setScaleType(QCPAxis::stLogarithmic);
        plot->xAxis->setScaleLogBase(10);
    }
    else
        plot->xAxis->setScaleType(QCPAxis::stLinear);
    plot->xAxis->grid()->setVisible(true);
    plot->xAxis->grid()->setSubGridVisible(true);

if i disable the last 2 lines, it works well.

rgds,
Michael

never mind, found the issue, was linking with old qcustomplot.h ...