Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

[C++] Library for plotting

  1. May 24, 2009 #1
    I will be making a C++ program for graphical representation of data. The user will import data about for example 4 different objects (some proteins or cells) and the program will plot correlation functions, linear regressions, maps (according to some generalised distance) for these objects. The user will have the abbility to change different parameters and interactively observe changes on plots. The program will produce at least 15 plots for one set of imported data.

    I will be programming on Linux, but the program will be used mostly on Windows.

    What library would you recommend me for the graphical part of the program? I know that i could do just fine with practically any of the libraries i found on google, but why not choose the best fit if i have the option to do so. So what is the standard library used for this kind of work? I would like something well documented and well tested (~ widely used).

    I have been doing some smaller "projects" (a homework that took me about 2 days to write) with the combination of http://www.gtkmm.org/" [Broken], but it seems that especially plotmm is not supported very well since i found no forums or mailing lists. The new project will take me at least 2 months, so i really don't want to start it knowing that if some problems occur i am completely on my own.

    At the moment http://www.qtsoftware.com/products/" [Broken] - what do you thing about it?
     
    Last edited by a moderator: May 4, 2017
  2. jcsd
  3. May 26, 2009 #2
    Why don't you just use http://www.gnuplot.info/" [Broken]?
     
    Last edited by a moderator: May 4, 2017
  4. May 26, 2009 #3

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    Remember gnuplot can be run to produce an image as the output which you can then load into a window in your program - so the user never knows any other program is involved.

    If the aim of this is to learn about plotting and data/fucntions rather than producing a commercial software package you will save weeks by simply calling gnuplot in the background.

    Even drawing a simple graph with tick marks and selecting ranges and drawing labels yourself is a lot more more work than you think when you start ( from bitter experience )
     
  5. May 26, 2009 #4

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Seems like your best bet would be MATLAB or Octave. There's no reason to descend all the way into C++ just to do some basic numerical computations and produce a few plots.

    - Warren
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: [C++] Library for plotting
  1. C library question (Replies: 1)

  2. C Library Problem (Replies: 2)

Loading...