Compatibility between matplotlib and plotly: Is there a solution?

Hello, I am new to this and needed a way to convert from matplotlib objects to plotly ones. Since I am working with the MNE-python library, which uses matplotlib to generate graphs, I thought maybe there is a way to convert between the objects of the two libraries, making it possible to build a software for EEG (eletro-encefalogram) data analysis in Dash, which is specialized in interfaces and graphs. For what I know there was a function called mpl_to_plotly() that used to deal with this kind of stuff, but it is currently deprecated. I would appreciate if someone knows about a starting point or what could be done to solve this problem and integrate everything. By the way this question is not on the Dash topics because the main concern is about converting between types of plotly and matplotlib.

Hey @fillipao.

Iā€™m not aware of any matplotlib <ā€”> plotly converter. Do you need the interactive plotly graphs or do you want to create a dash app?

If the latter was true, you might be interested in @adamschroederā€™s video:

1 Like

Thanks a lot, Iā€™m going to take a look :clap: :clap: .

1 Like