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. QCharts Graph Plotting
Forum Updated to NodeBB v4.3 + New Features

QCharts Graph Plotting

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 401 Views 2 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.
  • M Offline
    M Offline
    mohsin_2208
    wrote on last edited by
    #1

    I am using Q Chart for plotting graphs. I want to know that by using void QXYSeries::append(qreal x, qreal y), will it plot whole graph again or just add new point to the exsisting graph?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      foram456teen
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What is your use case ?

        On a side note, you might want to check the new (Technical Preview) QtGraphs module.

        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
        • M Offline
          M Offline
          mohsin_2208
          wrote on last edited by
          #4

          Currently I am using QWT plot to plot graphs on my custom device, And it is causing a CPU usuage hike when the graph is plotted. After plotting the CPU usage goes normal. I looked into the QWT source code and, whenever I tried to plot new data points, It replots the entire graph. I want a library which only plot the newly given data rather than plotting entire graph. So, I was looking to QCharts, If it has that type of functionality or not.

          JonBJ Pl45m4P 2 Replies Last reply
          0
          • M mohsin_2208

            Currently I am using QWT plot to plot graphs on my custom device, And it is causing a CPU usuage hike when the graph is plotted. After plotting the CPU usage goes normal. I looked into the QWT source code and, whenever I tried to plot new data points, It replots the entire graph. I want a library which only plot the newly given data rather than plotting entire graph. So, I was looking to QCharts, If it has that type of functionality or not.

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @mohsin_2208
            I don't know, my advice would be to try a test with Qt Charts and see. It should only take a few minutes to write something which plots from a sample dataset. Traditionally Qt Charts has been regarded as slower than QWT, I don't know whether that applies to to the "new (Technical Preview) QtGraphs module" @SGaist has referred you to. There have also been debates (posts in this forum) at how difficult/slow it can be to append points efficiently in Qt Charts.

            1 Reply Last reply
            0
            • M mohsin_2208

              Currently I am using QWT plot to plot graphs on my custom device, And it is causing a CPU usuage hike when the graph is plotted. After plotting the CPU usage goes normal. I looked into the QWT source code and, whenever I tried to plot new data points, It replots the entire graph. I want a library which only plot the newly given data rather than plotting entire graph. So, I was looking to QCharts, If it has that type of functionality or not.

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @mohsin_2208 said in QCharts Graph Plotting:

              I want a library which only plot the newly given data rather than plotting entire graph. So, I was looking to QCharts, If it has that type of functionality or not.

              What and how things are painted is manage by the QChartView.
              If you add new data to your data series, usually it repaints the graph and the underlaying widget update the area that has changed.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              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