Plotting XY data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pekka Jarvela

    Plotting XY data

    How could I plot my xy data from C++? I have heard that one can use
    gnuPlot for instance, but has somebody actually experiences of that?
    Does it work?

    My aim is that of Matlab plot(x,y,'o'); which plots points (x,y) with
    o's.

    Pekka
  • Allan Bruce

    #2
    Re: Plotting XY data


    "Pekka Jarvela" <pekkajarvela@e mail.com> wrote in message
    news:6780c2c2.0 405030552.49719 a8d@posting.goo gle.com...[color=blue]
    > How could I plot my xy data from C++? I have heard that one can use
    > gnuPlot for instance, but has somebody actually experiences of that?
    > Does it work?
    >
    > My aim is that of Matlab plot(x,y,'o'); which plots points (x,y) with
    > o's.
    >
    > Pekka[/color]

    have a look at the GDI commands in msdn (www.msdn.com)
    Allan


    Comment

    • AlesD

      #3
      Re: Plotting XY data

      Pekka Jarvela wrote:[color=blue]
      > How could I plot my xy data from C++? I have heard that one can use
      > gnuPlot for instance, but has somebody actually experiences of that?
      > Does it work?
      >
      > My aim is that of Matlab plot(x,y,'o'); which plots points (x,y) with
      > o's.
      >
      > Pekka[/color]

      gnuPlot is "stand alone" program which takes data in textual format and
      converts them into graphics. Your C++ program can create text file in
      format understandable for gnuPlot. Better might be to output the info
      to std:cout. Users can still redirect it to file, but can also direct it
      right into gnuPlot pipe.

      AlesD

      Comment

      • Benoit Mathieu

        #4
        Re: Plotting XY data

        Pekka Jarvela wrote:[color=blue]
        > How could I plot my xy data from C++? I have heard that one can use
        > gnuPlot for instance, but has somebody actually experiences of that?
        > Does it work?[/color]
        I send data to gnuplot through a pipe. It is fine as long as
        you are not concerned with speed. This is not specificaly C++.
        For example pipe this to gnuplot :
        plot "-" with lines
        1 2
        2 4
        3 3
        e

        Comment

        Working...