Have a look at QWT for plotting stuff.