why not using gnuplot + metapostYou just have to select the metapost terminal and all the text will be generated from tex or Latex.
so you can add equation etc..I have done all my PhD thesis figures with this and the result was terrific :)
bye frédéric