Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is It possible to integrate Python Seaborn with plotly

I am looking for some guidance in python seaborn for plot.ly. Is it possible to have seaborn graphs on plot.ly ?

Any example or tutorial available ? Please help. Thanks in advance.

like image 985
Sitz Blogz Avatar asked Jul 28 '15 14:07

Sitz Blogz


People also ask

Is plotly or seaborn better?

Plotly Express provide same good looking graphs with few code lines and interactive on the other hand. Another good aspect in Plotly Express is that formatting the graphs is lot more easily than Seaborn with in same number of code lines.

Does seaborn integrate with Jupyter?

Behind the scenes, seaborn uses matplotlib to draw its plots. For interactive work, it's recommended to use a Jupyter/IPython interface in matplotlib mode, or else you'll have to call matplotlib. pyplot. show() when you want to see the plot.

Can you use seaborn and matplotlib together?

Seaborn provides an API on top of Matplotlib that offers sane choices for plot style and color defaults, defines simple high-level functions for common statistical plot types, and integrates with the functionality provided by Pandas DataFrame s.

What is better than plotly?

Matplotlib vs Plotly: Plotting Data with Matplotlib Matplotlib is quite possibly the simplest way to plot data in Python. It is similar to plotting in MATLAB, allowing users full control over fonts, line styles, colors, and axes properties.


1 Answers

Seaborn is based on matplotlib, and Plotly converts the matplotlib figures it can (where mpl figure obejcts expose sufficient information to make the conversion. Here are the mpl conversion docs: https://plot.ly/matplotlib/)

Full coverage won't be available until mpl 2.0 release, when mpl figure objects are planned to be fully serializable.

like image 121
user1561393 Avatar answered Sep 18 '22 01:09

user1561393