PyXLL provides support for matplotlib (including pyplot and pandas), plotly, bokeh and altair.
If you want to use another Python plotting package that’s not already supported then you can. To do
so you need to provide you own implementation of PyXLL’s PlotBridgeBase
class.
The Plot Bridge is what PyXLL uses to export the chart or figure to an image, and so long as the plotting library you want to use can export to SVG or PNG format you can write a plot bridge class to use it in PyXLL.
See the API reference for PlotBridgeBase
for details of the methods you need to implement.
Once you have implemented your Plot Bridge you pass it to plot
as the bridge_cls
keyword argument. Whatever object you pass as the figure to plot
will be used to
construct your Plot Bridge object, which will be used to export the figure to an image. PyXLL
will take care of the rest of inserting or updating that image in Excel.