SigPlot provides fast interactive web-plotting for software defined radio.
Clone or download
maihde fix: handle x-cut/y-cut corner cases during zooms
First, refactor xCut/yCut logic to functions so the code is more
maintainable.

Second, when a cut is started on a zoom level handle that correctly
by creating a new zoom-stack and adjusting the axis as necessary.

Finally, when the cut is left go back to whereever we were when the
cut was entered.
Latest commit fa2b4e3 Aug 30, 2018
Permalink
Failed to load latest commit information.
.github/ISSUE_TEMPLATE chore: create GitHub issue templates. May 17, 2018
.gitlab/issue_templates Add bug template for gitlab Jun 24, 2017
benchmark Update copyrights, licenses, package versions, etc. Sep 22, 2017
dist fix: npmjs publishing Aug 1, 2018
doc Minor edit to fft-white.png Nov 5, 2017
docstrap-master Begin 2.0 branch by converting SigPlot to use browserfy Dec 27, 2016
js fix: handle x-cut/y-cut corner cases during zooms Aug 31, 2018
support/google-closure-compiler/build Add support for grunt concat Jun 12, 2014
test fix: handle x-cut/y-cut corner cases during zooms Aug 31, 2018
.gitattributes Update settings to ensure proper behaviour on Windows checkout and bu… Jun 10, 2017
.gitignore fixed conflicts for merge req#2 'add mat-file supp' posted by michael… Aug 31, 2017
.gitlab-ci.yml Add reasonable artifact expiration Mar 23, 2017
.jshintignore Apply jshint in grunt and fix jshint errors Jun 12, 2014
.jshintrc Apply jshint in grunt and fix jshint errors Jun 12, 2014
.npmignore add .npmignore Apr 17, 2017
.travis.yml Remove `jsbeautifier:cleanup` from .travis.yml based on @mihde's Oct 29, 2017
CONTRIBUTING.md chore:update README.md and create CONTRIBUTING.md May 17, 2018
Gruntfile.js chore: use grunt-githash to include hash in sigplot build output Jul 27, 2018
LICENSE replaced license info, created notice Aug 30, 2017
NOTICE replaced license info, created notice Aug 30, 2017
README.md chore:switch TravisCI badge to master May 20, 2018
karma.conf.js Expanding automatic benchmark tests to include Chrome May 10, 2016
package.json fix: npmjs publishing Aug 1, 2018

README.md

SigPlot

License Build Status PRs Welcome npm version

SigPlot provides fast, interactive plotting for software defined radio applications using HTML5.

SigPlot plotting the FFT of a signal

Getting Started

<html>
  <head>
    <title>SigPlot Standalone</title>
    <style>
      #plot {
        width: 600px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div id="plot"></div>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sigplot/dist/sigplot-debug.js"></script>
    <script type="text/javascript">
      var options = {};
      var plot = new sigplot.Plot(document.getElementById('plot'), options);
    </script>
  </body>
</html>

See this jsFiddle as an example. Additional examples and demos.

WebPack Quick Start

These instructions assume you have Node.js/NPM correctly installed on your system.

First install webpack:

npm install webpack -g

Then create a project for the SigPlot demo and install sigplot.

mkdir sigplot-webpack
cd sigplot-webpack
npm install sigplot

Next, create a file called demo.js with the following contents:

let sigplot = require("sigplot");
let options = {};
let plot = new sigplot.Plot(document.getElementById('plot'), options);

Then, create a file called index.html with the following contents:

<html>
  <head>
    <title>SigPlot Webpack</title>
    <style>
      #plot {
        width: 600px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div id="plot"></div>
    <script type="text/javascript" src="bundle.js" charset="utf-8"></script>
  </body>
</html>

Use webpack to compile the bundle:

webpack ./demo.js bundle.js

Then open index.html in your webbrowser.

Contributing

See CONTRIBUTING.md.

License

Licensed to the LGS Innovations (LGS) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. LGS licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.