QCustomPlot Discussion and Comments

Draw text next to axisReturn to overview

http://imgur.com/a/rGlmL how could i align blue text next to axis, like the labels.
What should be X axis, value and type?
Now i have

    m_lastTradeLineText->position->setTypeX(QCPItemPosition::ptViewportRatio);
    m_lastTradeLineText->position->setCoords(0.999f, y);

but look like qcpmargingroup is messing with me.

Tried ptAxisRectRatio and then coords something like (1.01, y), with text anchor Qt::AlignVCenter|Qt::AlighLeft

Oh, and make sure to set the correct axisRect with position->setAxisRect for this coordinate type to work, of course.