More questions about UserData in a .jls file

I just made the following changes in commit 3f26f17:

  • Added “!save_image” action to Waveform widget.
  • Added “show_summary” setting to Waveform widget.

You can add ["show_summary", False] to the settings list and ["!save_image", {file_path}] to the actions list, like this:

          "settings": [
            ["show_min_max", "off"],
            ["show_statistics", False],
            ["control_location", "off"],
            ["show_summary", False],
          ],
          "actions": [
            # adjust the x-axis range for fun
            ["!x_zoom_to", [t + int(second * 0.1), t + int(second * 0.9)]],
            # add a dual markers for fun
            ["!x_markers", ["add_dual", t + int(second * 0.245), t + int(second * 0.755)]],
            ["!x_markers", ["add_dual", t + int(second * 0.55), t + int(second * 0.575)]],
            ["!save_image", r"C:\tmp\out.png"],
          ],

Here is the generated out.png:

I just kicked off the 1.3.7 release on GitHub and will post to Delivering the joulescope file viewer as an npm package when it is ready as alpha.

1 Like