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

Fix tooltip location in plots #11215

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

anotheruserofgithub
Copy link
Contributor

Related Issues

model Test
  final input Real params[:] = {time * i for i in 1:3};
equation
  annotation(experiment(StartTime = 1, StopTime = 2));
end Test;

Simulate this model, then plot params as an array plot and try to display the tooltip around the last point (3, 3).

Purpose

The above test will fail!
It also shows how the fix makes "picking the points" much smoother and funnier.

Approach

Fixed a buggy condition (typo) in a function that checks whether a point belongs the a line segment with margins.

@anotheruserofgithub
Copy link
Contributor Author

@adeas31 Would you mind having a look? I saw this when working on diagram visualization, but forgot to push it.

@adeas31 adeas31 merged commit 95960de into OpenModelica:master Sep 19, 2023
2 checks passed
@anotheruserofgithub anotheruserofgithub deleted the fix_plot_picker branch September 19, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants