I am typesetting some numerical problems in digital signal processing and their solutions using latex and I am looking for a software package that I can use for drawing diagrams involved in it, for eg. Analog/digital signals, FFT Butterfly diagrams etc. P.S. I am using a Mac book pro.