Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Scatter chart in GMS strip chart

Scatter chart in GMS strip chart

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
9 Posts 2 Posters 0 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.
  • P Offline
    P Offline
    Parthiban
    wrote on last edited by
    #1

    hi, I have been using strip chart to draw XY line chart. I was using both Counter and Time domain for my plotting. Can any one tell how to use strip chart for scatter plotting. Is it support this type? If not, kindly suggest free scatter chart. -Parthi

    C 1 Reply Last reply
    0
    • P Parthiban

      hi, I have been using strip chart to draw XY line chart. I was using both Counter and Time domain for my plotting. Can any one tell how to use strip chart for scatter plotting. Is it support this type? If not, kindly suggest free scatter chart. -Parthi

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      I don't know what you are looking for exactly, but you can look at a link in my signature for a charting control that I developped. It could maybe be used for your needs.

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      P 1 Reply Last reply
      0
      • C Cedric Moonen

        I don't know what you are looking for exactly, but you can look at a link in my signature for a charting control that I developped. It could maybe be used for your needs.

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        P Offline
        P Offline
        Parthiban
        wrote on last edited by
        #3

        I have seen ur chart control. In that OSC control, is it allow to update data in run time? resizing is possible if i resize the form or dialog which holds the control? Auto-scaling option for both axis supported?.

        C 1 Reply Last reply
        0
        • P Parthiban

          I have seen ur chart control. In that OSC control, is it allow to update data in run time? resizing is possible if i resize the form or dialog which holds the control? Auto-scaling option for both axis supported?.

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Parthiban wrote:

          is it allow to update data in run time?

          Yes, you can perfectly add new points in a series whenever you want. You can also add new series to the chart whenever you want.

          Parthiban wrote:

          resizing is possible if i resize the form or dialog which holds the control?

          Yes (using the standard way of resizing windows and controls).

          Parthiban wrote:

          Auto-scaling option for both axis supported?.

          Yes. However, if your data rate is very high, and the axis have to be scaled for each point, this could be a problem.

          Cédric Moonen Software developer
          Charting control [v3.0] OpenGL game tutorial in C++

          P 1 Reply Last reply
          0
          • C Cedric Moonen

            Parthiban wrote:

            is it allow to update data in run time?

            Yes, you can perfectly add new points in a series whenever you want. You can also add new series to the chart whenever you want.

            Parthiban wrote:

            resizing is possible if i resize the form or dialog which holds the control?

            Yes (using the standard way of resizing windows and controls).

            Parthiban wrote:

            Auto-scaling option for both axis supported?.

            Yes. However, if your data rate is very high, and the axis have to be scaled for each point, this could be a problem.

            Cédric Moonen Software developer
            Charting control [v3.0] OpenGL game tutorial in C++

            P Offline
            P Offline
            Parthiban
            wrote on last edited by
            #5

            Thanks. I am trying ur control. Is it support scatter drawing like plotting of "Z" shape data. My application has to draw a pressure values based on load which will incremental linear in loading and decremental linear while unloading. Pressure in Y and Load in X. Load will go 0 to 50 and than return to 0.

            C 1 Reply Last reply
            0
            • P Parthiban

              Thanks. I am trying ur control. Is it support scatter drawing like plotting of "Z" shape data. My application has to draw a pressure values based on load which will incremental linear in loading and decremental linear while unloading. Pressure in Y and Load in X. Load will go 0 to 50 and than return to 0.

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Parthiban wrote:

              Is it support scatter drawing like plotting of "Z" shape data.

              Sorry, I don't understand what you mean. Could you please elaborate what you are trying to draw. Please keep in mind that I have no clue about your application. Are you looking for something where you have simple points drawn on the chart ? If yes, this is perfectly possible with the control.

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              P 1 Reply Last reply
              0
              • C Cedric Moonen

                Parthiban wrote:

                Is it support scatter drawing like plotting of "Z" shape data.

                Sorry, I don't understand what you mean. Could you please elaborate what you are trying to draw. Please keep in mind that I have no clue about your application. Are you looking for something where you have simple points drawn on the chart ? If yes, this is perfectly possible with the control.

                Cédric Moonen Software developer
                Charting control [v3.0] OpenGL game tutorial in C++

                P Offline
                P Offline
                Parthiban
                wrote on last edited by
                #7

                Take the following points. A(1,3), B(3,6), C(6,11), D(10,14), E(8,10), F(5,7), G(1,4) I have to draw the points in the order A to F. If i draw it in strip chart control, one line is connecting from A->G->B->F->C->E->D. But my requirement is A->B->C->D->E->F->G. ie, line has to start in A end in D, and return line starts at the position D to E end in G.

                C 1 Reply Last reply
                0
                • P Parthiban

                  Take the following points. A(1,3), B(3,6), C(6,11), D(10,14), E(8,10), F(5,7), G(1,4) I have to draw the points in the order A to F. If i draw it in strip chart control, one line is connecting from A->G->B->F->C->E->D. But my requirement is A->B->C->D->E->F->G. ie, line has to start in A end in D, and return line starts at the position D to E end in G.

                  C Offline
                  C Offline
                  Cedric Moonen
                  wrote on last edited by
                  #8

                  All right, I see what you mean. Yes, this is possible: look at the oscilloscope example, this is something similar as what you need. You have to make sure to disable the point ordering (see the code example for the oscilloscope example at the bottom of the article).

                  Cédric Moonen Software developer
                  Charting control [v3.0] OpenGL game tutorial in C++

                  P 1 Reply Last reply
                  0
                  • C Cedric Moonen

                    All right, I see what you mean. Yes, this is possible: look at the oscilloscope example, this is something similar as what you need. You have to make sure to disable the point ordering (see the code example for the oscilloscope example at the bottom of the article).

                    Cédric Moonen Software developer
                    Charting control [v3.0] OpenGL game tutorial in C++

                    P Offline
                    P Offline
                    Parthiban
                    wrote on last edited by
                    #9

                    I got it. I have told earlier post OSC control ie oscilloscope control. Thanks. I ll post u the result.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups