QCustomPlot Discussion and Comments

Get axis coordinates in pixelsReturn to overview

How can i get yAxis coordinates, i need draw text label from left of axis and from right
like this:

int yUpLimit=248;
QCPItemText *textLabel;
textLabel = new QCPItemText(mPlot);
textLabel->setText( QString::number(yUpLimit) );
textLabel->position->setTypeX(QCPItemPosition::ptAbsolute);
textLabel->position->setCoords(mPlot->yAxis->axisRect()->center().x(), yUpLimit); //want right side of yAxis

i need :
1000 |
     |
     |[248]
 100 |
     |
     |
  0  -------------------------
     |
     |

and 

1000 |
     |
[248]|
 100 |
     |
     |
  0  -------------------------
     |
     |

but i get (by my code):
 1000 |
      |
248]  |
  100 |
      |
      |
   0  -------------------------
      |
      |

is this what you are looking for? https://www.qcustomplot.com/index.php/tutorials/specialcases/axistags

i`m using https://www.qcustomplot.com/index.php/tutorials/specialcases/axistags
and i want tags(text labels) from left and from right of axis... and i need left axis and right axis.
But my code from that example make wrong result..

My solution is:

AxisTag::AxisTag(QCPAxis *parentAxis, const Qt::Alignment &tagAlignment) 
{
...
  mLabel->setPositionAlignment(tagAlignment);
...
}

void AxisTag::updatePosition(double value)
{
  if (mDummyTracer)
    mDummyTracer->position->setCoords( (mAxis->axisType() == QCPAxis::atLeft? 0 : 1),
                                        value);
...
}