Kromek Radangel gamma spectrometer USB HID daemon and WebUI. https://git.unino.de/pvivell/radangel
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>γ-Spectrum</title>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <!-- <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> -->
  9. <style>
  10. html,
  11. body {
  12. height: 100%;
  13. max-height: 100%;
  14. margin: 0;
  15. padding: 0;
  16. overflow: hidden;
  17. background: black;
  18. }
  19. div.graph,
  20. div.plot-container,
  21. div.svg-container,
  22. div.svg-container svg {
  23. min-height: 100%;
  24. /* height: auto !important; */
  25. height: 100%;
  26. margin: 0;
  27. padding: 0;
  28. overflow: hidden;
  29. }
  30. </style>
  31. <script src="js/plotly-cartesian-latest.min.js"></script>
  32. <script src="js/chroma.min.js"></script>
  33. <script src="js/streamplot.js"></script>
  34. <script>
  35. function init(id) {
  36. return createGraph(id, {
  37. 'src': {
  38. 'stream': '/data/stream.ws',
  39. 'init': '/data/hist.tsv'
  40. },
  41. 'title': {
  42. 'plot': 'γ-Spectrum',
  43. 'xaxis': 'Energy / keV',
  44. 'yaxis': 'Events'
  45. },
  46. 'colors': {
  47. 'graph': ['white', 'black'], // fg to bg
  48. 'lines': ['blue', 'cyan', 'lightgreen', 'yellow', 'red'] // cols left to right
  49. },
  50. 'maxPoints': 4096,
  51. 'size': 2,
  52. 'scale': 1.5,
  53. 'shape': 'linear', // 'spline', // 'linear'
  54. 'smoothing': 2.0
  55. });
  56. }
  57. </script>
  58. </head>
  59. <body onload="init('graph');">
  60. <div id="graph" class="graph">
  61. </div>
  62. </body>
  63. </html>