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 for PlotlyJS Plot vectors #65

Merged
merged 2 commits into from
Sep 19, 2020
Merged

Fix for PlotlyJS Plot vectors #65

merged 2 commits into from
Sep 19, 2020

Conversation

waralex
Copy link
Collaborator

@waralex waralex commented Sep 18, 2020

It turned out that PlotlyJs.jl implemented an ugly architectural solution. Redefined the vect(items::T...) method that is called for the [items...] syntax, and it returns not an array, but the Plot structure, to which the call elements are added as sub-graphs. Accordingly, I corrected the creation of an array from a single element when returning from a callback, so that it always creates an array bypassing the vect call

Copy link
Contributor

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Very nice detective work - and nice clean solution! 💃

@waralex waralex merged commit 94d2004 into dev Sep 19, 2020
@waralex waralex deleted the plot_vector_workaround branch September 19, 2020 07:07
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.

2 participants