Back to Community
Is 3D plotting possible in Quantopian Research?

Does Quantopian support 3D graphing in any way? It would be incredibly useful for visualising aspects of a new strategy I am developing.

I usually use the mplot3d toolkit from matplotlib, but it doesn't seem to be a valid import for Quantopian Research... Following a bit of research, it doesn't seem like Seaborn supports 3D plotting. Is there any way of plotting in 3D within a Research notebook, without simply linking to an image?

Thanks!

8 responses

To the best of my knowledge, we currently do not support 3D plotting. However, it'd obviously be useful for visualization, and it's easy to implement support for 3D plotting libraries. I expect that such capacities will be eventually added.

In the meantime, you may have to make do with 2D plotting. There are hacks and workarounds to communicate the same level of information (e.g. using multiple 2D plots). Though I haven't looked into it, I would also consider using dimensionality reduction techniques to collapse 3D-data into two dimensions while maintaining their relationships.

That is a shame, but oh well. As you said, I'm sure it will be implemented at some stage...

Instead of using multiple 2D plots, I could have got away to some extent using ternary plots (despite the semantics being iffy). These can be hacked together using matplotlib.tri, but again that isn't supported in Quantopian. Instead, seaborn FacetGrids will have to do...

Thanks.

Any update from the Q team on this library? It really limits research data visualization not being able to plot 3D charts.

Thanks

I was wondering the same thing about using Bokeh in research. Bokeh was utilized in a video tutorial provided by Q, but doesn't work in the actual research platform. For that reason I continue my research in a separate ipython notebook. Would love to be able to start using the research platform ....

https://www.quantopian.com/posts/bokeh-module-in-research

Has this changed as of August 2019?

Is Bokeh/Plotly charting tools on the road map for 2020. Five years is a long time not to support a fully functional/integrated feature (in jupyter nb's) into Research

The Bokeh/Plotly charting tools aren't explicitly on our roadmap. However, I have added +1 to our repository request for this. But, probably more positive, we are looking to 2020 as potentially changing the way the Quantopian platform handles user 'sessions' for notebooks and algos. Currently, these are run in a shared environment where security in one session can impact others. We are looking at moving towards a 'container' (rather than shared) model where each session would be contained in its own environment. Why does this matter? In this architecture there would be much fewer security concerns and modules could much easier be made accessible.

We will keep the community posted.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

That's very good news Dan. Thanks for the update.