Thread: recomendation on creating live graphs

  1. #1
    Registered User
    Join Date
    Jan 2017
    Posts
    9

    recomendation on creating live graphs

    Hi, I was wondering if someone can give me a recommendation on a graphing library I could use with C. I want to have my graph to update constantly as data from a analog digital converter comes in. I already started using gnuplot, but I don't really like using it and would like to change to something else, but I don't know which option to go with. the code is going to run on a raspberry pi zero and I want to create a graph similar to the keithley dmm7510's graph. My main motivation for this project is to get out of my comfort zone and make a GUI (with gtk), which is something I hated doing with python but has been more pleasant in C for some reason.

    thanks for your time

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    796
    Your question is a little too vague. You don't like gnuplot but don't say why. We don't know what kind of "data" you will be receiving, or your other requirements.

    Your first start would be a Google search for "C Graphing Library". That gave me "About 5,370,000 results". Examine the results. Then if you have questions about specific libraries that might fit your requirements, someone else here might be able to assist you further.

  3. #3
    Registered User
    Join Date
    Jan 2017
    Posts
    9
    Quote Originally Posted by rstanley View Post
    Your question is a little too vague. You don't like gnuplot but don't say why. We don't know what kind of "data" you will be receiving, or your other requirements.

    Your first start would be a Google search for "C Graphing Library". That gave me "About 5,370,000 results". Examine the results. Then if you have questions about specific libraries that might fit your requirements, someone else here might be able to assist you further.
    sorry it is vague. the data is an array filled with 24 bit values. what I didnt like about gnuplot was that I dont understand how to customize some things, for example when I pinch the screen I want the x axis show less of the array. I tried using google, thats how I started using gnuplot. I'm also thinking of trying cairo, manly because it seems to have good documentation my only reservation is that I dont see much on graphs. slope (GitHub - bytebrew/slope: C/Gtk+ data visualization library.) is linked in the cairo examples page but I dont know if it is a good route to go.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Book recomendation needed
    By baxy in forum Programming Book and Product Reviews
    Replies: 1
    Last Post: 09-22-2013, 06:02 PM
  2. Creating graphs with 2 dimensional arrays
    By askinne2 in forum C Programming
    Replies: 20
    Last Post: 10-22-2010, 12:53 PM
  3. folowup book recomendation
    By spitesuicide in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2010, 02:08 PM
  4. Creating graphs with array
    By cachilde in forum C++ Programming
    Replies: 1
    Last Post: 02-17-2010, 01:50 AM
  5. What is your recomendation
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 04-08-2002, 01:23 PM

Tags for this Thread