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

Label line display in AnimateMonitor not scaled properly #30

Closed
PhilippWillms opened this issue Apr 4, 2022 · 1 comment
Closed

Label line display in AnimateMonitor not scaled properly #30

PhilippWillms opened this issue Apr 4, 2022 · 1 comment

Comments

@PhilippWillms
Copy link

For using labels in the AnimateMonitor function, I found out that the lines in the graph to be drawn according to the label are not scaled properly. This affects ll. 3171 - 3182 in the salabim.py.

                    self.aos.append(
                        AnimateLine(
                            spec=(0, 0, width, 0),
                            x=x,
                            y=y,
                            offsetx=offsetx,
                            offsety=label_y,
                            angle=angle,
                            linewidth=label_linewidth,
                            linecolor=label_linecolor,
                            over3d=over3d,
                        )

Comparing it to the code for drawing the text label, I see that screen_coordinates is not explicitly set to True here. Could it be related to that?

@salabim
Copy link
Owner

salabim commented Apr 30, 2022

Thanks for pointing this out and even giving the solution.
I will fix this in the next version of salabim.

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

No branches or pull requests

2 participants