Skip to content

Corrects linestyle change behaviour in scatter#524

Merged
astrofrog merged 7 commits intoglue-viz:mainfrom
CyclingNinja:clean_vis_tests
Mar 18, 2026
Merged

Corrects linestyle change behaviour in scatter#524
astrofrog merged 7 commits intoglue-viz:mainfrom
CyclingNinja:clean_vis_tests

Conversation

@CyclingNinja
Copy link
Copy Markdown
Contributor

No description provided.

vector_lines_cls = bqplot.Lines
self.vector_lines = vector_lines_cls(scales=self.view.scales, x=[0.], y=[0.])
self.vector_lines.colors = [color2hex(self.state.color)]
self.vector_lines.color = [color2hex(self.state.color)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we found before, Lines/LineGL doesn't have color I think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i'm going to correct that next, i just want the tests building so I can check the issue @dhomeier has raised previously

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I missed something in that comment, they all inherit from Lines, which does have color, but that being an Array, not a List.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed back to colors

Copy link
Copy Markdown
Member

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a few commits to fix the remaining issues. The visual test failures are for two of the UI tests which are unrelated to this PR but for which I need matplotlib/pytest-mpl#260 to ignore the flaky hash.

@astrofrog astrofrog merged commit ec97088 into glue-viz:main Mar 18, 2026
30 of 31 checks passed
@astrofrog astrofrog added the bug Something isn't working label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants