(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Using a new updatable chart format. Update functions are made accessible to the caller, handing over chart controls with full functionality to the caller in a modular manner. Data binding is done with method chaining, like any other configuration variable, and can be changed after initialization. This allows for changes to be rendered in the context of chart history, leveraging D3's transitions and update logic.
In the example we're looking at historical weather data for New York provided by intellicast.com and wunderground.com. Inspired by weather-radicals.com.
This example uses scales to roll your own radial projection by mapping out the x, y, and r positions. If you are creating a line or an area you can use d3's convenience functions d3.svg.line.radial and d3.svg.area.radial but this is a method you can use if you want to use different graphical elements in a circular layout.
from skimage import io, filter, morphology, segmentation, measure, img_as_float | |
import os | |
# Download the image | |
if not os.path.exists('cell.png'): | |
print "Downloading snowflakes image..." | |
import urllib2 | |
u = urllib2.urlopen('http://people.sc.fsu.edu/~jburkardt/data/tif/cell.png') |
import numpy as np | |
def peakdetect(y_axis, x_axis = None, lookahead = 500, delta = 0): | |
""" | |
Converted from/based on a MATLAB script at http://billauer.co.il/peakdet.html | |
Algorithm for detecting local maximas and minmias in a signal. | |
Discovers peaks by searching for values which are surrounded by lower | |
or larger values for maximas and minimas respectively | |