How to normalization the tick value of QCustomPlot?
-
The famouse Customplot , great job , do helpful .
I met a problem : how to normalization the tick value ? For example , the xAxis range is 0 to 100 , and set the tick stp as 10, so the tick value is like , (0 , 10 , 20 , 30 ,... 90) . My need is to normalize the tick value to pattens like , (0 ,1 ,2,3,... 9 ,10 ) or ( 0 ,5, 10 , 15, .. 50 ) .
I tried to set the top xAxis2's range to like 10 , then set the tick cout to 10 , and step to 1, then tick value can be (0 ,1 ,2,3,... 9 ,10 ) , and the curve also plot good .
while the botton xAxis ,I think its range determint the vector range to plot curve . so , you can't play tcik on it . -
Hi,
Are you talking about the QCustomPlot project ?
-
Then you might want to contact its authors. They might be faster to answer than here.
-
use the QCPAxisTickerText.