oscar6echo / ezvis3d

MIT License
15 stars 4 forks source link

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

Open zindy opened 7 years ago

zindy commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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