Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Setting axis label in Qwt multiaxis branches [solved]
Qt 6.11 is out! See what's new in the release blog

Setting axis label in Qwt multiaxis branches [solved]

Scheduled Pinned Locked Moved 3rd Party Software
5 Posts 2 Posters 5.4k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    ConfaMiky
    wrote on last edited by
    #1

    Hi all My names Michele, and i'm working with ploting data in Qt
    I installed the Qwt braches to implement multiaxis plot. But now I have a question. colud someone said me ho to set the axis label for each axis of my plot.

    Regards Miky

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

      Hi and welcome to devnet,

      My knowledge of Qwt is a bit rusty but isn't "setAxisTitle":http://qwt.sourceforge.net/class_qwt_plot.html#a5d60f1836e05e5cc5c7fe9570d6a608a what you need ?

      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
      • C Offline
        C Offline
        ConfaMiky
        wrote on last edited by
        #3

        Hi SGaist.
        Sorry I forget to write which kind of branches I install. I have Qwt with the branch for the multiaxis. So my question is about how to set axis title for each axis.
        thanks miky

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ConfaMiky
          wrote on last edited by
          #4

          Ok,
          I solved my problem. here after a peaco of code to expalin how to do it.

          setAxesCount(QwtAxis::yLeft,4); // set 4 axis on y direction

          setAxisTitle(QwtAxisId(QwtAxis::yLeft,0),"ciao"); // set the title for the first axis
          setAxisTitle(QwtAxisId(QwtAxis::yLeft,1),"ciao"); // set the title for the second axis
          setAxisTitle( QwtAxis::xBottom, "Whatever" ); // set the title for the x axis
          

          Ciao miky

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

            Nive you found out and thanks for sharing !

            Since you have Qwt working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

            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

            • Login

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