Whilst looking at the gnuplot website, I discovered the demo page, which shows, amongst other things, new features in the CVS version. The main that caught my eye was the plot on the right, which shows a few overlaid sinusoids, with the code used to generate them as the key. Here’s the code: plot for [n=2:10] sin(x*n)/n with filledcurves That’s right, one line for 8 plots! Version 4.3 of gnuplot introduces the for keyword, which lets you sweep through numerical parameters and loop through strings.
I had so much fun making my previous screencast, on installing the Gnuplot TextMate bundle, that I decided to make another one. This one is about using the bundle. It includes info on snippets and commands, as well as the TM_GNUPLOT variable I introduced. Setting this variable allows you to choose the gnuplot executable. View it below, on Vimeo directly, or download it. Using the Gnuplot TextMate Bundle from Matt Foster on Vimeo.
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: 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.
I proudly present: my first foray into screencasting! After months of umming and ahhing I finally decided to get a copy of screenflow (partially for Christmas, and with a nice educational discount!). To ease myself into it, I decided to start with something simple, so I ended up with how to download and install my Gnuplot bundle for TextMate. Installing Gnuplot TextMate Bundle from Matt Foster on Vimeo. Please leave your comments below, and I’ll try to address them.
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: 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.