| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8" />
- <title>γ-Spectrum</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <!-- <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> -->
- <style>
- html,
- body {
- height: 100%;
- max-height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
- background: black;
- }
-
- div.graph,
- div.plot-container,
- div.svg-container,
- div.svg-container svg {
- min-height: 100%;
- /* height: auto !important; */
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
- }
- </style>
- <script src="js/plotly-cartesian-latest.min.js"></script>
- <script src="js/chroma.min.js"></script>
- <script src="js/streamplot.js"></script>
- <script>
- function init(id) {
- return createGraph(id, {
- 'src': {
- 'stream': '/data/stream.ws',
- 'init': '/data/hist.tsv'
- },
- 'title': {
- 'plot': 'γ-Spectrum',
- 'xaxis': 'Energy / keV',
- 'yaxis': 'Events'
- },
- 'colors': {
- 'graph': ['white', 'black'], // fg to bg
- 'lines': ['blue', 'cyan', 'lightgreen', 'yellow', 'red'] // cols left to right
- },
- 'maxPoints': 4096,
- 'size': 2,
- 'scale': 1.5,
- 'shape': 'linear', // 'spline', // 'linear'
- 'smoothing': 2.0
- });
- }
- </script>
- </head>
-
- <body onload="init('graph');">
- <div id="graph" class="graph">
- </div>
- </body>
-
- </html>
|