More Chaco

Posted by matt
on Friday, November 07

I’ve been doing a little bit more tweaking with chaco, learning how to use groups and containers. The docs are great, if a bit incomplete, so I ended up looking at various examples.

I’ve updated my simple AM demo so that it now shows the frequency content of the signal (calculated on the fly, using an FFT).

The running program looks like this:

AM Demo with FFT
Uploaded with plasq’s Skitch!

I’d still like to add zooming and area selections to the x-axis, and tidy the plots up a bit, but it’s looking good.

The code used to generate this coolness was:

Short and sweet.

Exploration with Chaco

Posted by matt
on Wednesday, November 05

This morning I was reading this tutorial on Chaco, a 2-D visualisation toolkit for Python (it’s part of the enthought python distribution), and I wanted a toy project to get a feel for it.

I decided to put together a very quick model of amplitude modulation, the kind of thing elec-eng students cover early in their degrees.

I came up with this:

AM Demo
Uploaded with plasq’s Skitch!

It’s very heavily based on the code in the tutorial above, but it works well, and it looks and feels pretty cool.

I find this kind of app very useful for helping me get a feel for how something works, and using something like chaco in this way makes it very easy to throw quick models together to play with.

My next challenge to to find something useful to do with it!

Here’s the code: