Results 1 to 3 of 3

Thread: qwt or GNU plot or other ... ?

  1. #1

    Default qwt or GNU plot or other ... ?

    Hello all,
    I write because I like to know which library you use to plot your graphs usually in your programs. I do programs that calculations the evolution of different magnitude in time and I would like for each time step plot the results.
    Basically to have a dynamic graph.

    Previously I was using qwt but I'm no expert in this library and I saw a lot of disadvantages and I wonder if with other libraries is simpler.
    (it might be just me who can not use it properly)

    Here is the program I have (schematically):
    Qt Code:
    1. while (i <iFinal)
    2. {
    3. calcul.run ();
    4. graphique.plot ();
    5. i ;
    6. }
    To copy to clipboard, switch view to plain text mode 

    at each time step "i" I want to do a calculation and Live Display on my curve (without losing the points I have already drawn on the curve).


    With qwt:
    => I had a lot of trouble with this library. First, to plot points without deleting the other i have for each time step "i" to plot all the results. Because, by default it updating the graph and delete everything else and keeps only the last point .
    => My second problem is also in the ease of use. perhaps we can use qwt QtDesigner but with me it don't works and i have to programm all the management of windows and qwt graphics... is difficult for a non informaticien like me

    * GNU plot
    I really do not know how it works and I like to have your opinion on this. D'after that I realized that reads text files and it draw a curve from two vectors (X and Y).

    Can be plot in a real time ?

    => Thank you in advance for any information

    ps : in reality, i want to plot a graphique like the attachment. By qwt i can but is very difficult without Qtdesigner
    plot.jpg
    Last edited by didierB; 20th July 2012 at 04:22.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qwt or GNU plot or other ... ?

    gnuplot is a command line plotting tool that takes a plot definition script and the raw data and produces graphs in various 2d and 3d formats. It could easily produce the graph grid you show from static data but it is not suited to real-time plotting.

    Qwt has examples of dynamic plots that update as data arrives. There's also a Qwt sub-forum here that is frequented by the Qwt author and other with experience in using it.

  3. #3

    Default Re: qwt or GNU plot or other ... ?

    thanks for your answer !
    => to you have already made a coupling between a C++ code and GNU plot ? if yes, have you a simple exemple with to curve to show me ?

    => for Qwt it's a little difficult, can we use this with Qt designer ?

Similar Threads

  1. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  2. Replies: 1
    Last Post: 17th April 2012, 10:10
  3. Replies: 0
    Last Post: 16th December 2011, 18:10
  4. qwt plot
    By kamalasan in forum Qwt
    Replies: 6
    Last Post: 18th June 2011, 16:24
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.