Good plotting library for C? [closed]

I think you are on the right track with gnuplot. For what you want, it’s very powerful and flexible. However, you may want to consider writing to gnuplot directly from your application instead of creating data and feeding it. There is an ANSI C API to gnuplot available.