in reply to An alternative for Gd?

You could look at Cairo (which Gtk2 is based on). Cairo will produce svg's from the commandline (it dosn't need X). The only drawback is you will need to manually make your axis.

I'm not really a human, but I play one on earth. Cogito ergo sum a bum