Skip to content

Instantly share code, notes, and snippets.



Created May 12, 2016
What would you like to do?
<!DOCTYPE html>
<meta charset="utf-8">
<title>G3 Test</title>
<style media="screen">
.axis path,
.axis line {
stroke-width: 1;
fill: none;
stroke: #000;
shape-rendering: crispEdges;
<script src="" charset="utf-8"></script>
<script src="" charset="utf-8"></script>
<script src="g3/dist/g3.js" charset="utf-8"></script>
<div class="wig_plot_div">
<script type="text/javascript">
var myPlot = g3.plot('.wig_plot_div')
.xDomain([-10, 10])
.yDomain([0, 100])
var myarr = new Array(10);
for(var t=0; t<10; t++) {
myarr[t] = new Array(100);
for (var i=0; i<100; i++) {
myarr[t][i] = Math.sin(2*Math.PI * 5 * i / 100 + Math.PI * t / 8);
var wig = g3.wiggle(myPlot, myarr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.