Skip to content

Instantly share code, notes, and snippets.

@rkern
rkern / arrayplotter.py
Created October 17, 2012 10:05 — forked from gazzar/arrayplotter.py
Chaco FunctionImageData test
#!/usr/bin/env python
"""
Demonstrates use of the FunctionImageData that depends on an external range
and returns different data depending on that range.
"""
# Major library imports
from numpy import pi, linspace, meshgrid, sin
# Enthought library imports
@rkern
rkern / gist:3840695
Created October 5, 2012 15:59 — forked from jwiggins/gist:3840576
This is a list model that I'm using for my Enaml ListView. For some reason, the column indices that I'm getting don't compare correctly with integer constants. WTF.
class XFileItemModel(AbstractListModel):
""" An AbstractListModel implementation which handles X files.
"""
columns = [
'#',
'X File',
'Start Time (UTC)',
'Duration',