PyXLL The Python Excel Add-In
  • Product
    • Features
    • Get Started
    • Request Demo
    • Download
  • Pricing
  • Resources
    • Documentation
    • Blog
    • Videos
    • FAQ
    • Learn Python
    • Customer Portal
    • About Us
  • Support
    • Documentation
    • Videos
    • FAQ
    • Contact Us
  • Contact Us
Table of Contents
  • PyXLL Documentation
  • Introduction to PyXLL
  • User Guide
    • Installing PyXLL
    • Configuring PyXLL
    • Worksheet Functions
    • Macro Functions
    • Real Time Data
    • Cell Formatting
    • Charts and Plotting
      • Matplotlib
      • Pandas
      • Plotly
      • Seaborn
      • Bokeh
      • Altair
      • Others
      • Plotting from Worksheet Functions
      • Plotting from Menus, Macros and Elsewhere
      • Moving and Resizing
    • Custom Task Panes
    • ActiveX Controls
    • Using Pandas in Excel
    • Customizing the Ribbon
    • Context Menu Functions
    • Working with Tables
    • Python as a VBA Replacement
    • Menu Functions
    • Reloading and Rebinding
    • Error Handling
    • Deploying your add-in
    • Workbook Metadata
  • Video Guides and Tutorials
  • API Reference
  • What’s new in PyXLL 5
  • Changelog
Close

Other Plotting Packages¶

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.

« Altair
Custom Task Panes »
  • Home
  • Product
  • Features
  • Documentation
  • Download
  • Pricing
  • Support
  • Documentation
  • Videos
  • FAQ
  • Learn Python
  • Contact Us
  • About
  • About Us
  • Legal
  • Blog
© Copyright PyXLL Ltd