Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Plot of field values in a multi-record file #1713

Open
1 task
justacec opened this issue May 25, 2024 · 1 comment
Open
1 task

[Feature] Plot of field values in a multi-record file #1713

justacec opened this issue May 25, 2024 · 1 comment

Comments

@justacec
Copy link

What feature would you like to see?

I think it would be very nice to be able to define a pattern, and then be able to plot the value of an individual field over a series of repeated patterns in a file. For example, lets say you had a binary file where a position is being stored in a structure and it is written to the file once per second. After 100 seconds you should have 100 records in the binary file. The feature would allow you to put 100 values on a plot to see how the number evolves over time.

How will this feature be useful to you and others?

This feature would allow you to observe how the value changes over time and also note its max and min values. This is very useful in reverse engineering data formats.

Request Type

  • I can provide a PoC for this feature or am willing to work on it myself and submit a PR

Additional context?

I understand there is a visualizer with a plot, but that only works for a pile of data in a single record, not a series of points distributed throughout a number of records.

@paxcut
Copy link
Contributor

paxcut commented May 25, 2024

As long as all the values are stored in the input file no matter how scattered they may be , they can be collected into a single array and passed to the line plotter if you can deduce their locations from the data. For an example of a pattern that does exactly that look at stl.hexpat in the pattern library provided by I,Hex.

If you need to create plots of data derived from values read from the file you can also use sections to assemble the final results which can also be visualized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants