I don't know what exactly you want/need but there are a couple of options:
Works cross platform and is command based. There are many options for both 2D and 3D graphs. Just take a look at the demos for Gnuplot.
Gnuplot is a portable command-line driven graphing utility for Linux,
OS/2, MS Windows, OSX, VMS,...