Place marker every Nth data point

DataGraph Forums › Technical Support › Support Desk › Place marker every Nth data point

  • This topic has 7 replies, 3 voices, and was last updated 1 week, 6 days ago by Jean-Yves Le Stang.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15933
    ronald parsons
    Participant

      Hi,

      I have some datasets that are runs of results every second for 10-20 minutes. I was wondering if there was a way to place a marker on the line at a specified interval. Marking every data point is too busy, but marking every minute would be useful to help the viewer to distinguish between lines on the graph. I could hack my way to it by pulling out the data I want to use, but I’m hoping I’m either missing something or it is something that could be added in the future.

      Thanks in advance,

      Ron

      #15934
      Jean-Yves Le Stang
      Participant

        Hi,

        You have to create a function column that will elaborate which rows are to be marked (based on Nth and the first row to be marked) using the “mod” function and use this column as a mask fort the “Points Command” that will plot your data.

        If your data are every second and you want to plot every minute you just set the first marker to 1 and Nth to 60.

        I hope it helps

        Nth scantling

        #15935
        ronald parsons
        Participant

          Thanks, that looks like it does what I’m asking about. Just need to wrap my head around how you got there and try it out on one of my files.

          #15936
          Jean-Yves Le Stang
          Participant

            OK, thanks, happy to help further if you need

            #15937
            dgteam
            Moderator

              There is also a stride that you can use in the Plot command directly.

              See the example files:

              nthPoints

              Using a mask as suggested above can give you more control over which points you choose, but using the stride can be a quick way to minimize the points shown.

               

              #15938
              Jean-Yves Le Stang
              Participant

                Much better than my proposal, I have to admit… So far, I never paid attention to the stride option of the Miter line join…

                Thank you for advice.

                #15939
                dgteam
                Moderator

                  We added that option more recently for just this purpose 🙂

                  #15941
                  Jean-Yves Le Stang
                  Participant

                    DG Team looking ahead as usual to meet customers needs… congratulations !!!!!

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.

                  DataGraph Forums › Technical Support › Support Desk › Place marker every Nth data point