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 does one create a QChart Colorbar?
Forum Updated to NodeBB v4.3 + New Features

How does one create a QChart Colorbar?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 885 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.
  • S Offline
    S Offline
    Stewman Phil
    wrote on last edited by
    #1

    Hello,

    I am using Qt Charts for a project. It can do almost everything I want, but I cannot figure out how to create a plot colorbar (like this one in Matplotlib https://matplotlib.org/3.4.3/gallery/axes_grid1/simple_colorbar.html). I don't see any examples with a colorbar and google searches for a QT colorbar aren't turning up much. I want to make sure that colorbar's don't already exist before I go recreating the wheel. Is there an existing Qt Charts colorbar object? If not is there another QT library with a colorbar

    Thanks

    JonBJ 1 Reply Last reply
    0
    • S Stewman Phil

      Hello,

      I am using Qt Charts for a project. It can do almost everything I want, but I cannot figure out how to create a plot colorbar (like this one in Matplotlib https://matplotlib.org/3.4.3/gallery/axes_grid1/simple_colorbar.html). I don't see any examples with a colorbar and google searches for a QT colorbar aren't turning up much. I want to make sure that colorbar's don't already exist before I go recreating the wheel. Is there an existing Qt Charts colorbar object? If not is there another QT library with a colorbar

      Thanks

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Stewman-Phil
      Looking at the Matplotlib simple_colorbar I have absolutely no idea what it is telling me! :)
      I suppose the "stacked bar" stuff in https://doc.qt.io/qt-6/qtcharts-overview.html#bar-charts does not do whatever you want?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stewman Phil
        wrote on last edited by
        #3

        My apologies. I am looking for something like this. Screen Shot 2022-06-04 at 8.17.20 AM.png

        I want to be able to give a numerical range and get a colored bar with tick marks.

        JonBJ 1 Reply Last reply
        0
        • S Stewman Phil

          My apologies. I am looking for something like this. Screen Shot 2022-06-04 at 8.17.20 AM.png

          I want to be able to give a numerical range and get a colored bar with tick marks.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Stewman-Phil Can you do this with the "stacked bar" stuff?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stewman Phil
            wrote on last edited by
            #5

            I don't believe one could do this with the stacked bar chart, but maybe I am mistaken?

            H 1 Reply Last reply
            0
            • S Stewman Phil

              I don't believe one could do this with the stacked bar chart, but maybe I am mistaken?

              H Offline
              H Offline
              HEI_BRO
              wrote on last edited by HEI_BRO
              #6

              @Stewman-Phil
              have you found the method ? i have the same problem

              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