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

Axes and charting #83

Open
tomas-nestorovic opened this issue Oct 11, 2024 · 0 comments
Open

Axes and charting #83

tomas-nestorovic opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@tomas-nestorovic
Copy link
Owner

Drawing axes (and values on them) is not unified. For instance, the Track Viewer (Issue #59) first draws a timeline, and then completely independently on it draws all assets, mimicking the formulas used in the timeline to translate time to pixels. Another example is the track Scatter Plot with two orthogonal axes (for time and counts) into which a set of fluxes is drawn using a formula that is completely independent on the two orthogonal axes.

This is wrong because once the formula for translating values (e.g. the above time) to pixels changes, then all custom measurements will go off sync with the instance of the axis (e.g. the above timeline in the Track Viewer). Tightly coupled with axes is charting which should be fully revised as for further usability and agile style of code.

The following is a list of mandatory modifications. But any further improvements regarding the various instances of axes should also be committed into this issue.

  • Must be able to draw only part of an axis.
  • An axis must provide methods to translate an input value to a client pixel (or logical unit), and vice versa.
  • An axis should provide helper methods to draw "primitives," e.g. perpendicular lines or text.
  • Must completely revise the Charting namespace.
  • Must revise the usage of a timeline in the Track Map tab.
@tomas-nestorovic tomas-nestorovic added bug Something isn't working enhancement New feature or request labels Oct 11, 2024
@tomas-nestorovic tomas-nestorovic self-assigned this Oct 11, 2024
tomas-nestorovic added a commit that referenced this issue Oct 24, 2024
tomas-nestorovic added a commit that referenced this issue Oct 24, 2024
tomas-nestorovic added a commit that referenced this issue Oct 25, 2024
tomas-nestorovic added a commit that referenced this issue Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant