I am trying to create a line that when it is ascending along the Y axis it is green, descending red and sideways blue QCustomPot. This image shows what I am looking to do.
I have played around with different classes of QCP but none seam to be able to change the pen color while using addDate(). setData() doesn't allow for a third variable for example a colormap to be added.I tried using QCPPainter but with no scucess. Any suggestions on where to start?
I have played around with different classes of QCP but none seam to be able to change the pen color while using addDate(). setData() doesn't allow for a third variable for example a colormap to be added.I tried using QCPPainter but with no scucess. Any suggestions on where to start?
Last edited: