Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to normalization the tick value of QCustomPlot?
QtWS25 Last Chance

How to normalization the tick value of QCustomPlot?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 449 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cyberpunkerC Offline
    cyberpunkerC Offline
    cyberpunker
    wrote on last edited by cyberpunker
    #1

    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 .

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you talking about the QCustomPlot project ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      cyberpunkerC 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you talking about the QCustomPlot project ?

        cyberpunkerC Offline
        cyberpunkerC Offline
        cyberpunker
        wrote on last edited by
        #3

        @SGaist

        of course

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you might want to contact its authors. They might be faster to answer than here.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • cyberpunkerC Offline
            cyberpunkerC Offline
            cyberpunker
            wrote on last edited by
            #5

            use the QCPAxisTickerText.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved