Thread: gnuplot & C++

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    23

    gnuplot & C++

    Dear all,

    I want to plot my data using gnuplot interactively from the inside of my c++ program without writing gnuplot file and data file.
    How can I do that? I will appreciate if you could show a way.

    thank you

  2. #2
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    i looked into this briefly myself recently, and there didn't seem to be a simple answer. it seems like you just have to dig through the source files yourself to learn what is needed to use it as a library.

    UTSL!

    i opted to use qwtplot3d instead, but that is probably not an option for you unless you happen to be using qt already. even as it is, qwtplot3d's documentation and api are rather lacking.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    23
    do you think can we use ostrinstream? and implement the content of stream with system command ..... ?

  4. #4
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    that sounds plausible, but i didn't dig through the gnuplot API to see hwo that might be done. i thought it was too likely that it would be unbearably slow for interactive rendering.

    as far as i can tell, gnuplot doesn't use any hardware accelerated rendering, so it may not have very good performance during user interaction
    Last edited by m37h0d; 01-19-2010 at 11:21 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gnuplot and C programming
    By bartleby84 in forum C Programming
    Replies: 6
    Last Post: 04-30-2010, 02:53 PM
  2. GNUPLOT: Plotting multiple files.
    By waynex in forum C Programming
    Replies: 7
    Last Post: 01-18-2008, 08:55 AM
  3. GNUPLOT: Plotting multiple files.
    By waynex in forum Tech Board
    Replies: 3
    Last Post: 01-18-2008, 06:58 AM
  4. gnuplot question
    By vutek0328 in forum Tech Board
    Replies: 1
    Last Post: 11-09-2006, 06:40 AM
  5. gnuplot
    By siubo in forum C Programming
    Replies: 3
    Last Post: 04-16-2003, 10:31 AM