Skip to content

Instantly share code, notes, and snippets.

@jgbos
Last active December 15, 2015 08:19
Show Gist options
  • Save jgbos/5230515 to your computer and use it in GitHub Desktop.
Save jgbos/5230515 to your computer and use it in GitHub Desktop.
Kalman Filter
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.axis text {
fill: #000;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script src="https://raw.github.com/jgbos/math/master/math.min.js"></script>
<script>
var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var svg = d3.select("body").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment