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

Is it possible to combine multiple datasets in one graph? #1

Open
zindy opened this issue Sep 19, 2017 · 4 comments
Open

Is it possible to combine multiple datasets in one graph? #1

zindy opened this issue Sep 19, 2017 · 4 comments

Comments

@zindy
Copy link

zindy commented Sep 19, 2017

Hello,

thank you for your library, absolutely love it!

I was wondering if it's possible to combine a "scatter plot" dataset with a "surface dataset" in the same graph.

I have a case for this at the end of this notebook: https://nbviewer.jupyter.org/github/zindy/RICS/blob/master/RICS_calculation.ipynb

I'd like to combine the original data (graph 1) as a point cloud around my 2-D fit (graph 2).

I couldn't find anything in the graph3d section of the vis.js examples but some examples in the graph2d section show how to group multiple sets in one graph.

This one for example: http://visjs.org/examples/graph2d/06_interpolation.html

Cheers,
Egor

@oscar6echo
Copy link
Owner

Hi Egor,

I'm glad it's useful.

It's been a while since I wrote this wrapper. When I did it I was careful to build as thin a wrapper as possible and give full access to the underlying lib, and NOT stand in the way. So if the lib is the same, you should be able to use it fully.

From what I read in the graph3d-doc/data-format the params I exposed are still there: x, y, z, style, filter. By comparison, in the graph2d-doc/data-format there is a group param, which enables to plot several curves at the same time.

So I think the 3d lib does not allow it...
I suspect that the engines behind graph2d and graph3d are vastly different so a feature in one does not imply it is available in the other.

For 2d graph I wrapped another lib (highcharts) - as I found it more versatile and better looking - in ezhc.

Rgds

@zindy
Copy link
Author

zindy commented Sep 20, 2017

Hi Oscar,

thank your for your feedback! I'll have a go at implementing the group attribute in graph3d. Maybe looking at graph2d, but like you said the two may be quite different. I'll work on the javascript side of things first and then check how you put your thin python wrapper together. I shall contact you in due time!

Merci man, super sympa ta bibliotheque :)

@mmpagani
Copy link

Hi,
I would like to simply reaffirm what Zindy wrote. This library is really nice and it would be great to have the possibility of combining multiple datasets in a 3D plot.
Regards,
Marco

@oscar6echo
Copy link
Owner

Marco,

Believe me if I could I would update the lib. But it is just a thin (transparent actually) wrapper around this vis.js/graph3d lib. All that it can do I expose.
You can read the page the doc page. I even took each example in the official doc and made them in the demo notebook

But I don't have the time (and probably skills) to update the underlying lib...
They are looking for people to help maintain it though.

Regards

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

3 participants